yesodweb / wai

Haskell Web Application Interface
MIT License
834 stars 263 forks source link

Multiline syntax bug #969

Closed Vlix closed 10 months ago

Vlix commented 10 months ago

warp-tls: when making multiline strings, the first \ on a new line doesn't escape the next character, it's the start of the next part of the string.

This will result in the following response (note the trailing rs)

HTTP/1.1 426 Upgrade Requiredr
Upgrade: TLS/1.0, HTTP/1.1r
Connection: Upgrader
Content-Type: text/plain

I'm not sure why this hasn't been a problem yet? Probably because it's the response when denying something, so if the response is off, it still indicates that it's a 426? :shrug:

kazu-yamamoto commented 10 months ago

Rebased and merged!