Skip to content

Commit 0abb261

Browse files
heythisisnatemarcelstoer
authored andcommitted
Decode chunked responses case insensitve headers (#2483)
1 parent 9195105 commit 0abb261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/http/httpclient.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ static void ICACHE_FLASH_ATTR http_disconnect_callback( void * arg )
414414
body = body + 4;
415415
}
416416

417-
if ( os_strstr( req->buffer, "Transfer-Encoding: chunked" ) )
417+
if ( os_strstr( req->buffer, "Transfer-Encoding: chunked" ) || os_strstr( req->buffer, "transfer-encoding: chunked" ) )
418418
{
419419
int body_size = req->buffer_size - (body - req->buffer);
420420
char chunked_decode_buffer[body_size];

0 commit comments

Comments
 (0)