Skip to content

Commit

Permalink
fix(JsonGzipHttpClient): flush gzipstream to underlying stream (#191)
Browse files Browse the repository at this point in the history
Add data flushing from GzipStream to underlying stream.

Fixes #190 

Co-authored-by: Anton Smolkov <[email protected]>
  • Loading branch information
AntonSmolkov and Anton Smolkov authored May 7, 2021
1 parent ef6a16a commit bac2846
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public virtual async Task<HttpResponseMessage> PostAsync(string requestUri, Stre
await contentStream
.CopyToAsync(gzipStream)
.ConfigureAwait(false);

await gzipStream.FlushAsync();

output.Position = 0;

var content = new StreamContent(output);
Expand Down

0 comments on commit bac2846

Please sign in to comment.