Skip to content

Commit

Permalink
Merge pull request #1651 from Expensify/tyler-chunked-response
Browse files Browse the repository at this point in the history
Save responses as not-chunked after de-chunking
  • Loading branch information
tylerkaraszewski authored Feb 20, 2024
2 parents 728ec61 + bbd7a88 commit 4e30a10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libstuff/libstuff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,9 @@ int SParseHTTP(const char* buffer, size_t length, string& methodLine, STable& na
int numEOLs = 2;
while (parseEnd < inputEnd && (*parseEnd == '\r' || *parseEnd == '\n') && numEOLs--)
++parseEnd;

// The SData object we've generated is not chunked, we remove this header as it does not describe the state of this request.
nameValueMap.erase("Transfer-Encoding");
return (int)(parseEnd - buffer);
}

Expand Down

0 comments on commit 4e30a10

Please sign in to comment.