mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
webclient: Clear WGET_FLAG_GOT_CONTENT_LENGTH for each request
Otherwise, a stale value might be used after a redirection.
This commit is contained in:
parent
065a130bc8
commit
610b04fa97
1 changed files with 2 additions and 1 deletions
|
|
@ -577,7 +577,8 @@ static inline int wget_parsestatus(struct webclient_context *ctx,
|
|||
*/
|
||||
|
||||
ws->state = WEBCLIENT_STATE_HEADERS;
|
||||
ws->internal_flags &= ~(WGET_FLAG_CHUNKED |
|
||||
ws->internal_flags &= ~(WGET_FLAG_GOT_CONTENT_LENGTH |
|
||||
WGET_FLAG_CHUNKED |
|
||||
WGET_FLAG_GOT_LOCATION);
|
||||
ndx = 0;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue