Skip to content

Commit 9a55d1f

Browse files
authored
Merge pull request #335 from AlexParamonov/fix/brackets_in_curl
Turn off URL globbing parser for curl get requests
2 parents bcc806d + e086d9a commit 9a55d1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

features/slate_documentation.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Feature: Generate Slate documentation from test examples
203203
204204
205205
```shell
206-
curl "http://localhost:3000/orders" -X GET \
206+
curl -g "http://localhost:3000/orders" -X GET \
207207
-H "Host: example.org" \
208208
-H "Cookie: "
209209
"""

lib/rspec_api_documentation/curl.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def post
1616
end
1717

1818
def get
19-
"curl \"#{url}#{get_data}\" -X GET #{headers}"
19+
"curl -g \"#{url}#{get_data}\" -X GET #{headers}"
2020
end
2121

2222
def head

0 commit comments

Comments
 (0)