aboutsummaryrefslogtreecommitdiffstats
path: root/actionwebservice
diff options
context:
space:
mode:
authorLeon Breedt <bitserf@gmail.com>2005-04-16 21:59:55 +0000
committerLeon Breedt <bitserf@gmail.com>2005-04-16 21:59:55 +0000
commit5feb7e26e8ae45030e075ec387e4c0cccc3b05ec (patch)
treee41748b1bca51812dc8de4b2e2f91ca19c48505c /actionwebservice
parent7f32666924493fb21a72ad56fb2cf4091aad4141 (diff)
downloadrails-5feb7e26e8ae45030e075ec387e4c0cccc3b05ec.tar.gz
rails-5feb7e26e8ae45030e075ec387e4c0cccc3b05ec.tar.bz2
rails-5feb7e26e8ae45030e075ec387e4c0cccc3b05ec.zip
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
Diffstat (limited to 'actionwebservice')
-rw-r--r--actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb b/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb
index a999be9b7c..38fc7e4410 100644
--- a/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb
+++ b/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb
@@ -95,7 +95,7 @@ module ActionWebService # :nodoc:
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