mirror of
https://github.com/faye/websocket-driver-ruby.git
synced 2025-11-01 13:59:38 +00:00
Accept HTTP responses that have an empty reason-phrase, per RFC 2616
This commit is contained in:
@@ -4,7 +4,7 @@ module WebSocket
|
||||
class Response
|
||||
include Headers
|
||||
|
||||
STATUS_LINE = /^(HTTP\/[0-9]+\.[0-9]+) ([0-9]{3}) ([\x20-\x7e]+)$/
|
||||
STATUS_LINE = /^(HTTP\/[0-9]+\.[0-9]+) ([0-9]{3}) ([\x20-\x7e]*)$/
|
||||
|
||||
attr_reader :code
|
||||
|
||||
|
||||
Reference in New Issue
Block a user