Skip to content

Commit

Permalink
Merge pull request #110 from jandillmann/master
Browse files Browse the repository at this point in the history
Fix HTTP basic authentication header detection for cURL example
  • Loading branch information
oestrich committed Jan 21, 2014
2 parents 539ebe4 + 152b1df commit 44be914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec_api_documentation/curl.rb
Expand Up @@ -41,7 +41,7 @@ def url

def headers
filter_headers(super).map do |k, v|
if k == "HTTP_AUTHORIZATION" && v =~ /^Basic/
if k =~ /authorization/i && v =~ /^Basic/
"\\\n\t-u #{format_auth_header(v)}"
else
"\\\n\t-H \"#{format_full_header(k, v)}\""
Expand Down

0 comments on commit 44be914

Please sign in to comment.