Descriptionnet: Fix a regression that broke file uploading with http authentication
This is a reland of r138168, which was reverted speculatively, but identified unrelated.
When uploading a file with http authentication, UploadData is reused
for a new UploadDataStream. Hence, we should close the files in UploadData
if already opened and read, so we can reread the files from the beginning.
The regression was caused by r123677. Special thanks to thomas.themel for
identifying the offending patch and helping us to fix the issue.
BUG=128574
TEST=added a unit test; manually confirmed that uploading a file with basic authentication, and multi-round authentication with NTLM and Negotiate worked.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138191
Patch Set 1 #
Total comments: 13
Patch Set 2 : address comments #
Total comments: 2
Patch Set 3 : to reland #
Messages
Total messages: 16 (0 generated)
|