[squeak-dev] WebResponse | Bug in binary-vs-ascii
Marcel Taeumel
marcel.taeumel at hpi.de
Thu Oct 22 07:50:01 UTC 2020
Hi all!
So, WebClient will pass the 'stream' as-is when creating the WebResponse via #readFrom:. The response will then read the headers.
But there is no code that checks 'content-type' nor 'content-encoding' to set that stream back to binary.
:-(
This is a bug? Well, there is code that checks the stream for "isBinary" to then use appropriate buffers, i.e. String or ByteArray.
Best,
Marcel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20201022/11b4ec7f/attachment.html>
More information about the Squeak-dev
mailing list
|