You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After an authorization failure on a WebSocket upgrade request, the response status is set to 401 along with some authentication headers. The response completes.
Actual behavior
The response never completes unless response.sendHeaders() is also called, which seems to be the case for WebSocket upgrade requests only, and not for HTTP requests where a call to sendHeaders() isn't necessary.
Steps to reproduce
During a WebSocket upgrade request, set the status to 401 and add some headers, but don't call sendHeaders().
The text was updated successfully, but these errors were encountered:
rstoyanchev
changed the title
Headers not sent on WebSocket upgrade with 401 (UNAUTHORIZED)
Headers not sent on WebSocket upgrade with 401 (UNAUTHORIZED) response
Jan 31, 2018
Expected behavior
After an authorization failure on a WebSocket upgrade request, the response status is set to 401 along with some authentication headers. The response completes.
Actual behavior
The response never completes unless
response.sendHeaders()
is also called, which seems to be the case for WebSocket upgrade requests only, and not for HTTP requests where a call tosendHeaders()
isn't necessary.Steps to reproduce
During a WebSocket upgrade request, set the status to 401 and add some headers, but don't call
sendHeaders()
.Reactor Netty version
0.7.3
JVM version (e.g.
java -version
)Java 8
OS version (e.g.
uname -a
)Linux
This was originally reported in https://jira.spring.io/browse/SPR-16421.
The text was updated successfully, but these errors were encountered: