From e086d9ae31fa4b0e1272eed5e99fda5591437ba6 Mon Sep 17 00:00:00 2001 From: Alexander Paramonov Date: Fri, 21 Apr 2017 12:22:39 +0200 Subject: [PATCH] Turn off URL globbing parser for curl get requests --- features/slate_documentation.feature | 2 +- lib/rspec_api_documentation/curl.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/slate_documentation.feature b/features/slate_documentation.feature index 8eb557cf..87c8d317 100644 --- a/features/slate_documentation.feature +++ b/features/slate_documentation.feature @@ -203,7 +203,7 @@ Feature: Generate Slate documentation from test examples ```shell - curl "http://localhost:3000/orders" -X GET \ + curl -g "http://localhost:3000/orders" -X GET \ -H "Host: example.org" \ -H "Cookie: " """ diff --git a/lib/rspec_api_documentation/curl.rb b/lib/rspec_api_documentation/curl.rb index 257f0883..817c4f19 100644 --- a/lib/rspec_api_documentation/curl.rb +++ b/lib/rspec_api_documentation/curl.rb @@ -16,7 +16,7 @@ def post end def get - "curl \"#{url}#{get_data}\" -X GET #{headers}" + "curl -g \"#{url}#{get_data}\" -X GET #{headers}" end def head