Skip to content

Commit

Permalink
Better format cURL headers
Browse files Browse the repository at this point in the history
Break each header on a separate line with a tab.
  • Loading branch information
oestrich committed May 3, 2013
1 parent 8bf76ee commit 4f20602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec_api_documentation/curl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def url

def headers
super.map do |k, v|
"-H \"#{format_header(k, v)}\""
"\\\n\t-H \"#{format_header(k, v)}\""
end.join(" ")
end

Expand Down

0 comments on commit 4f20602

Please sign in to comment.