Skip to content

Commit

Permalink
Make quotes optional for a namespace (fixes #116)
Browse files Browse the repository at this point in the history
  • Loading branch information
inossidabile committed Sep 13, 2013
1 parent f46113c commit 31cbe18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wash_out/router.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31cbe18

Please sign in to comment.