Skip to content

Commit 475fef5

Browse files
tarzanoestrich
authored andcommitted
escape given query_strings
i.e. `get "/api/v1/find?query=:my_query"` should escape `:my_query`
1 parent 49a0173 commit 475fef5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rspec_api_documentation/dsl/endpoint.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ def path
101101
if extra_params.keys.include?($1)
102102
delete_extra_param($1)
103103
elsif respond_to?($1)
104-
send($1)
104+
escape send($1)
105105
else
106-
match
106+
escape match
107107
end
108108
end
109109
end

0 commit comments

Comments
 (0)