mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:11:19 +00:00
242ce279db
If the Content-Length has been set by contentLength setter, manually setting the header to the same value will lead to the header being dropped, since _contentLength is not updated in set() method. The method set() will erase the header and add back the header with new value. As _contentLength is not updated, when it adds back the new header, it looks at _contentLength (Which is not reset) and skips the addition ( _contentLength is the same as the new value, we had the header already). Bug: https://github.com/dart-lang/sdk/issues/42369 Change-Id: I3fba7cc332bdff0ba56e602ac810fbaeb85d2606 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151427 Commit-Queue: Zichang Guo <zichangguo@google.com> Reviewed-by: Jonas Termansen <sortie@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
api_readme.md | ||
BUILD.gn |