Fix a type error that would not compile on Apple LLVM version 6.1.0...

This commit is contained in:
Jeremy Rubin
2016-08-14 20:45:46 -04:00
committed by lateminer
parent 5c5f1f9b01
commit 146eff7075

View File

@@ -33,7 +33,7 @@ void InterruptHTTPServer();
void StopHTTPServer();
/** Handler for requests to a certain HTTP path */
typedef std::function<void(HTTPRequest* req, const std::string &)> HTTPRequestHandler;
typedef std::function<bool(HTTPRequest* req, const std::string &)> HTTPRequestHandler;
/** Register handler for prefix.
* If multiple handlers match a prefix, the first-registered one will
* be invoked.