From 461dce13ae6db3db60256248c1696a6d1660b0c1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 14 Aug 2006 23:14:08 +0000 Subject: Fix AWS tests git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/action_web_service/dispatcher/action_controller_dispatcher.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb') 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 a338aedbc1..a959150f9d 100644 --- a/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb +++ b/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb @@ -37,6 +37,10 @@ module ActionWebService # :nodoc: module InstanceMethods # :nodoc: private def dispatch_web_service_request + if request.get? + render_text('GET not supported', '500 GET not supported') + return + end exception = nil begin ws_request = discover_web_service_request(request) -- cgit v1.2.3