Ignore POST.

This commit is contained in:
botanicus
2012-03-13 10:59:00 +00:00
parent 13cacca164
commit 1b4c62a578
+1
View File
@@ -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'])