Skip to content

Commit

Permalink
Don't send initial response for websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hall committed Oct 17, 2014
1 parent 8fe0bdd commit cb2176e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cramp/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def render(body, *args)

def send_initial_response(status, headers, body)
case transport
when :websocket
# Faye handles this response. We don't have to do anything
when :long_polling
# Dont send no initial response. Just cache it for later.
@_lp_status = status
Expand Down

0 comments on commit cb2176e

Please sign in to comment.