You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using SoapCore with .NET Framework and ASP.NET Core 2.1, chunked transfer encoding is used. I have run into some compatibility issues with some existing applications, so I think chunked transfer-encoding should not be used. This has already been implemented in #843 for ASP.NET Core >= 3.0, but on ASP.NET Core 2.1, chunked transfer-encoding is still used.
The text was updated successfully, but these errors were encountered:
vidrenning
added a commit
to vidrenning/SoapCore
that referenced
this issue
Feb 9, 2024
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.
FixesDigDes#1015
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.
FixesDigDes#1015
When using SoapCore with .NET Framework and ASP.NET Core 2.1, chunked transfer encoding is used. I have run into some compatibility issues with some existing applications, so I think chunked transfer-encoding should not be used. This has already been implemented in #843 for ASP.NET Core >= 3.0, but on ASP.NET Core 2.1, chunked transfer-encoding is still used.
The text was updated successfully, but these errors were encountered: