File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,8 @@ server {
46
46
RewriteRule /(.*) http://localhost:8080/$1 [P,L]
47
47
48
48
ProxyRequests off
49
-
50
- RequestHeader set X-Forwarded-Proto https
51
- RequestHeader set X-Forwarded-Port 443
52
-
53
- ProxyPass / http://localhost:8080/ nocanon
49
+ ProxyPass / http://localhost:8080/ nocanon
54
50
ProxyPassReverse / http://localhost:8080/
55
-
56
51
</VirtualHost>
57
52
```
58
53
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ export abstract class Server {
331
331
this . ensureGet ( request ) ;
332
332
if ( ! this . authenticate ( request ) ) {
333
333
throw new HttpError ( "Unauthorized" , HttpCode . Unauthorized ) ;
334
- } else if ( request . headers . upgrade !== "websocket" ) {
334
+ } else if ( ! request . headers . upgrade || request . headers . upgrade . toLowerCase ( ) !== "websocket" ) {
335
335
throw new Error ( "HTTP/1.1 400 Bad Request" ) ;
336
336
}
337
337
You can’t perform that action at this time.
0 commit comments