Skip to content

Commit

Permalink
Fix the thin monkeypatch
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed Jan 11, 2010
1 parent 47e3c69 commit bc799fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cramp/controller/websocket/thin_backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def receive_data(data)

case @serving
when :websocket
callback = @request.env[WEBSOCKET_RECEIVE_CALLBACK]
callback = @request.env[Thin::Request::WEBSOCKET_RECEIVE_CALLBACK]
callback.call(data) if callback
else
if @request.parse(data)
Expand All @@ -19,7 +19,7 @@ def receive_data(data)
process
end
end
rescue InvalidRequest => e
rescue Thin::InvalidRequest => e
log "!! Invalid request"
log_error e
close_connection
Expand Down

0 comments on commit bc799fb

Please sign in to comment.