-
Notifications
You must be signed in to change notification settings - Fork 24.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android] Replaced ForwardingSink with OutputStream to fix progress
Using a ForwardingSink, an IllegalStateException was thrown in Okio's RealBufferedSink when attempting to write to a sink that was closed. Additionally, it did not send updates for non-input stream request bodies. Replacing with an OutputStream-based sink prevents the crash by throwing an IOException instead, and fixes the progress updates. Also, now get the content length before writing to avoid incorrect total size for input streams. Addresses issues: 10423/11016.
- Loading branch information
1 parent
5c1e626
commit e0d91bf
Showing
1 changed file
with
42 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters