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) {