Implement hasResponded

This commit is contained in:
Alex Hultman
2019-01-18 17:20:21 +01:00
parent 2caefa9d96
commit 19aa6ec9af
3 changed files with 18 additions and 10 deletions
+2 -1
View File
@@ -135,8 +135,9 @@ private:
HttpResponseData<SSL> *httpResponseData = (HttpResponseData<SSL> *) static_dispatch(us_ssl_socket_ext, us_socket_ext)((SOCKET_TYPE *) s);
httpResponseData->offset = 0;
httpResponseData->state = 0;
httpResponseData->state |= HttpResponseData<SSL>::HTTP_RESPONSE_PENDING;
/* Route the method and URL */
/* Route the method and URL (unhandled should close or end it by default) */
httpContextData->router.route(httpRequest->getMethod(), httpRequest->getUrl(), {
(HttpResponse<SSL> *) s, httpRequest
});