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:
parent
26bc4afad4
commit
b56a5a1d60
5 changed files with 68 additions and 3 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue