From 17d9767394c4ab5ac6b24be05891d3242f6604f2 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Mon, 3 Sep 2018 15:48:38 -0400 Subject: [PATCH] Fix bug where detection for chunked --- common/socket_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/socket_helper.c b/common/socket_helper.c index f4b8fcd..406a64d 100644 --- a/common/socket_helper.c +++ b/common/socket_helper.c @@ -102,7 +102,7 @@ static struct socket_read_info get_read_info(const struct http_header *headers) struct socket_read_info info = {STRATEGY_EOF, -1}; while (header_cursor != NULL) { if (headercmp(header_cursor, HEADER_TRANSFER_ENCODING) == 0 && - case_insensitive_strcmp(header_cursor->value, ENCODING_TYPE_CHUNKED)) { + case_insensitive_strcmp(header_cursor->value, ENCODING_TYPE_CHUNKED) == 0) { info.strategy = STRATEGY_CHUNKED; } else if (headercmp(header_cursor, HEADER_CONTENT_LENGTH) == 0 && info.strategy != STRATEGY_CHUNKED) {