Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Send a stripped down message in the text following 500, and leave the…

… detailed

response for the body, or we may generate invalid HTTP responses that causes 404's.


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1172 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 5feb7e26e8ae45030e075ec387e4c0cccc3b05ec 1 parent 7f32666
@bitserf bitserf authored
View
2  actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb
@@ -95,7 +95,7 @@ def send_web_service_error_response(request, exception)
message = "Exception raised"
backtrace = ""
end
- render_text("Internal protocol error: #{message}#{backtrace}", "500 #{message}")
+ render_text("Internal protocol error: #{message}#{backtrace}", "500 Internal Protocol Error")
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.