mirror of
https://github.com/faye/websocket-driver-ruby.git
synced 2025-11-01 13:59:38 +00:00
Ignore POST.
This commit is contained in:
@@ -91,6 +91,7 @@ module Faye
|
||||
end
|
||||
|
||||
def self.websocket?(env)
|
||||
env['REQUEST_METHOD'] == 'GET' and
|
||||
env['HTTP_CONNECTION'] and
|
||||
env['HTTP_CONNECTION'].split(/\s*,\s*/).include?('Upgrade') and
|
||||
['WebSocket', 'websocket'].include?(env['HTTP_UPGRADE'])
|
||||
|
||||
Reference in New Issue
Block a user