Fixing upgrade header check.

master
Thomas Hintz 10 years ago
parent e812e3cbbe
commit 946552f79c

@ -570,7 +570,7 @@
"ping thread"))) "ping thread")))
; make sure the request meets the spec for websockets ; make sure the request meets the spec for websockets
(cond ((not (and (eq? (header-value 'connection headers #f) 'upgrade) (cond ((not (and (member 'upgrade (header-values 'connection headers))
(string-ci= (car (header-value 'upgrade headers '(""))) "websocket"))) (string-ci= (car (header-value 'upgrade headers '(""))) "websocket")))
(signal (make-websocket-exception (signal (make-websocket-exception
(make-property-condition 'missing-upgrade-header)))) (make-property-condition 'missing-upgrade-header))))

Loading…
Cancel
Save