diff --git a/lib/wash_out/router.rb b/lib/wash_out/router.rb index 3ad9fea7..80391398 100644 --- a/lib/wash_out/router.rb +++ b/lib/wash_out/router.rb @@ -15,7 +15,7 @@ def call(env) if controller.soap_config.namespace namespace = Regexp.escape controller.soap_config.namespace.to_s - soap_action.gsub!(/^\"(#{namespace}(\/|#)?)?(.*)\"$/, '\3') + soap_action.gsub!(/^"?(#{namespace}(\/|#)?)?([^"]*)"?$/, '\3') else soap_action = soap_action[1...-1] end