Skip to content

Commit

Permalink
Fixing 'halt' under Rainbows, now sends an Array instead of a String.
Browse files Browse the repository at this point in the history
Rainbows was expecting a body object that responds to #each, like Cramp::Body does.
  • Loading branch information
koudelka committed Oct 17, 2011
1 parent adc54f8 commit 1f183e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cramp/abstract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def send_initial_response(response_status, response_headers, response_body)
end

def halt(status, headers = {}, halt_body = '')
send_response(status, headers, halt_body)
send_response(status, headers, [halt_body])
end

def send_response(response_status, response_headers, response_body)
Expand Down

0 comments on commit 1f183e3

Please sign in to comment.