Skip to content

Commit

Permalink
Fix up Http pipelining check
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB committed Jan 29, 2019
1 parent 7b87460 commit 359873f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/HttpContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ struct HttpContext {
/* Reset httpResponse */
HttpResponseData<SSL> *httpResponseData = (HttpResponseData<SSL> *) us_new_socket_ext(SSL, (us_new_socket_t *) s);
httpResponseData->offset = 0;
httpResponseData->state = 0;

/* Are we not ready for another request yet? Terminate the connection. */
if (httpResponseData->state & HttpResponseData<SSL>::HTTP_RESPONSE_PENDING) {
Expand All @@ -139,7 +138,7 @@ struct HttpContext {
}

/* Mark pending request and emit it */
httpResponseData->state |= HttpResponseData<SSL>::HTTP_RESPONSE_PENDING;
httpResponseData->state = HttpResponseData<SSL>::HTTP_RESPONSE_PENDING;

/* Route the method and URL in two passes */
typename HttpContextData<SSL>::RouterData routerData = {(HttpResponse<SSL> *) s, httpRequest};
Expand Down

0 comments on commit 359873f

Please sign in to comment.