Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prevent a specifically set Authorization header from being trampled b…

…y assumed credentials (introduced in pull request #13)
  • Loading branch information...
commit a954bf6dd07a0564e92e4353df039702cef7af4b 1 parent 11f1469
@noahhl noahhl authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/http.rb
2  lib/http.rb
@@ -175,7 +175,7 @@ def connection(connection, willSendRequest:request, redirectResponse:redirect_re
puts "HTTP redirected #{request.description}" #if SETTINGS[:debug]
new_request = request.mutableCopy
new_request.setValue(@credentials.inspect, forHTTPHeaderField:'Authorization')
- @request.setAllHTTPHeaderFields(@headers) if @headers
+ new_request.setAllHTTPHeaderFields(@headers) if @headers
# p @request.allHTTPHeaderFields.description
@connection = NSURLConnection.connectionWithRequest(new_request, delegate:self)
Please sign in to comment.
Something went wrong with that request. Please try again.