Skip to content

Commit

Permalink
Use legacy compatible converter
Browse files Browse the repository at this point in the history
Older versions of Seaside don't have a dedicated ASCII converter.
Use UTF-8 instead.
  • Loading branch information
theseion committed Jun 6, 2022
1 parent 805c011 commit 87e1aad
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ commit
could be written to the external stream directly (in particular, writing of
singel characters doesn't work). Luckily, the encoders already translate
characters to bytes, so we only need to wrap the stream with the appropariate
encoder. Header data is always ASCII encoded."
encodingStream := (GRCodec forEncoding: 'ascii') encoderFor: externalStream.
encoder. Header data is always ASCII encoded.
Because older versions of Seaside don't have a dedicated ASCII encoder we
use UTF-8 here (ASCII is a subset of UTF-8)."
encodingStream := (GRCodec forEncoding: 'utf-8') encoderFor: externalStream.
self
writeStatusOn: encodingStream;
writeHeadersOn: encodingStream;
Expand Down

0 comments on commit 87e1aad

Please sign in to comment.