Skip to content

Commit

Permalink
Enabled cramp websockets to support query portion of URLs by changing…
Browse files Browse the repository at this point in the history
… REQUEST_PATH to REQUEST_URI.

Adapted from the commit by rickyrobinson here: rickyrobinson@eabb234
  • Loading branch information
lazyatom authored and lifo committed Feb 25, 2011
1 parent 2519252 commit 415d4b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cramp/websocket/extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def secure_websocket?

def websocket_url
scheme = secure_websocket? ? 'wss:' : 'ws:'
@env['websocket.url'] = "#{ scheme }//#{ @env['HTTP_HOST'] }#{ @env['REQUEST_PATH'] }"
@env['websocket.url'] = "#{ scheme }//#{ @env['HTTP_HOST'] }#{ @env['REQUEST_URI'] }"
end

class WebSocketHandler
Expand Down

0 comments on commit 415d4b0

Please sign in to comment.