Skip to content

Commit f672352

Browse files
committed
fix: wrong HTTP header to detect the websocket request
1 parent 857e9b3 commit f672352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/maglev/preview_constraint.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def crawler?(request)
3333
end
3434

3535
def websocket?(request)
36-
request.headers['Upgrade'] == 'websocket'
36+
request.headers['HTTP_UPGRADE'] == 'websocket'
3737
end
3838

3939
def match_host?(request)

0 commit comments

Comments
 (0)