Make tests

This commit is contained in:
Alex Hultman
2018-07-02 21:56:21 +02:00
parent aac0eee30a
commit df2a48f042
6 changed files with 15 additions and 103 deletions
+3 -1
View File
@@ -168,7 +168,9 @@ struct HttpSocket {
httpData->httpParser.consumePostPadded(data, length, this, [&onHttpRequest](void *user, HttpRequest *httpRequest) {
onHttpRequest((HttpSocket<SSL> *) user, httpRequest);
}, [httpData](void *user, std::string_view data) {
httpData->inStream(data);
if (httpData->inStream) {
httpData->inStream(data);
}
}, [](void *user) {
std::cout << "INVALID HTTP!" << std::endl;
});