Permalink
Browse files

Prevent a specifically set Authorization header from being trampled b…

…y assumed credentials (introduced in pull request #13)
  • Loading branch information...
1 parent 11f1469 commit a954bf6dd07a0564e92e4353df039702cef7af4b @noahhl noahhl committed May 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http.rb
View
@@ -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.cancel
@connection = NSURLConnection.connectionWithRequest(new_request, delegate:self)

0 comments on commit a954bf6

Please sign in to comment.