Descriptionsandwich: Handle 200 responses with no data.
Before sandwich was asserting that the request encoded_data_length > 0.
But it turn out that encoded_data_length does not include the response
headers' length. As a result, this assertion was failing on some website
doing XHR requests that were returning 200 response.
This CL fixes this issue by correctly computing the total number of
byte transfered back to chrome with GetResponseTransportLength(),
including the response headers size.
BUG=582080
Committed: https://crrev.com/2dad1bfcf999e58230aabcba1e75b5e994b31fcc
Cr-Commit-Position: refs/heads/master@{#404415}
Patch Set 1 #Patch Set 2 : Rebase for landing #Patch Set 3 : Remove unfortunate dependency #
Messages
Total messages: 13 (7 generated)
|