0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Do not send a 101 after a final response in switch_protocol

This commit is contained in:
Loïc Hoguin 2018-09-12 16:16:29 +02:00
parent 26bc4afad4
commit b56a5a1d60
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
5 changed files with 68 additions and 3 deletions

View file

@ -81,6 +81,11 @@ also been worked on.
* Improve the validation of HTTP/1.1 absolute-form requests.
* When the `switch_protocol` is used after a response was
sent, Cowboy will no longer attempt to send the 101 informational
response for the protocol upgrade. This caused a crash of the
connection previously.
* Errors that occur when a callback returned by
`content_types_provided` does not exist have been improved.

View file

@ -205,6 +205,9 @@ Contains the headers that will be sent in the 101 response,
along with the module implementing the protocol we are
switching to and its initial state.
Note that the 101 informational response will not be sent
after a final response.
=== stop
Stop the stream.