|
|
@ -24,12 +24,12 @@ |
|
|
|
namespace jsonrpc |
|
|
|
{ |
|
|
|
|
|
|
|
int HttpServer::callback(struct mg_connection *conn) |
|
|
|
int HttpServer::callback(struct mg_connection*) |
|
|
|
{ |
|
|
|
|
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
bool CorsHttpServer::SendResponse(const std::string& _response, void* _addInfo) |
|
|
|
bool CorsHttpServer::SendResponse(std::string const& _response, void* _addInfo) |
|
|
|
{ |
|
|
|
struct mg_connection* conn = (struct mg_connection*) _addInfo; |
|
|
|
if (mg_printf(conn, "HTTP/1.1 200 OK\r\n" |
|
|
@ -41,7 +41,6 @@ bool CorsHttpServer::SendResponse(const std::string& _response, void* _addInfo) |
|
|
|
"%s",(int)_response.length(), _response.c_str()) > 0) |
|
|
|
return true; |
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|