From 359873f4ea498fe1de4f69cbc02cef973652a956 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Tue, 29 Jan 2019 16:18:08 +0100 Subject: [PATCH] Fix up Http pipelining check --- src/HttpContext.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/HttpContext.h b/src/HttpContext.h index e4c73f00b..037543d75 100644 --- a/src/HttpContext.h +++ b/src/HttpContext.h @@ -130,7 +130,6 @@ struct HttpContext { /* Reset httpResponse */ HttpResponseData *httpResponseData = (HttpResponseData *) 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::HTTP_RESPONSE_PENDING) { @@ -139,7 +138,7 @@ struct HttpContext { } /* Mark pending request and emit it */ - httpResponseData->state |= HttpResponseData::HTTP_RESPONSE_PENDING; + httpResponseData->state = HttpResponseData::HTTP_RESPONSE_PENDING; /* Route the method and URL in two passes */ typename HttpContextData::RouterData routerData = {(HttpResponse *) s, httpRequest};