Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
0abb2617
Commit
0abb2617
authored
Sep 12, 2018
by
Nate Clark
Committed by
Marcel Stör
Sep 12, 2018
Browse files
Decode chunked responses case insensitve headers (#2483)
parent
91951051
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/http/httpclient.c
View file @
0abb2617
...
@@ -414,7 +414,7 @@ static void ICACHE_FLASH_ATTR http_disconnect_callback( void * arg )
...
@@ -414,7 +414,7 @@ static void ICACHE_FLASH_ATTR http_disconnect_callback( void * arg )
body
=
body
+
4
;
body
=
body
+
4
;
}
}
if
(
os_strstr
(
req
->
buffer
,
"Transfer-Encoding: chunked"
)
)
if
(
os_strstr
(
req
->
buffer
,
"Transfer-Encoding: chunked"
)
||
os_strstr
(
req
->
buffer
,
"transfer-encoding: chunked"
)
)
{
{
int
body_size
=
req
->
buffer_size
-
(
body
-
req
->
buffer
);
int
body_size
=
req
->
buffer_size
-
(
body
-
req
->
buffer
);
char
chunked_decode_buffer
[
body_size
];
char
chunked_decode_buffer
[
body_size
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment