forked from DigDes/SoapCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use chunked transfer encoding on ASP.NET Core 2.1
Setting the Content-Length header explicitly will disable chunked transfer-encoding. However this was only done for one of the two WriteMessageAsync methods in SoapMessageEncoder. I have changed the other method to also set the Content-Length header. To do this I have used a MemoryStream. The other implementation used a StringWriter, which is not ideal, because it will convert to and from different encodings. We only want to find out the length of the stream, so a MemoryStream is faster and sufficient. Also changed the other WriteMessageAsync implementation to use a MemoryStream and removed the CustomStringWriter class. Fixes DigDes#1015
- Loading branch information
1 parent
3ab2c90
commit 16c70ea
Showing
4 changed files
with
44 additions
and
62 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
This file was deleted.
Oops, something went wrong.
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
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