Permalink
Browse files

disable setting the auth headers in a redirect until we have proper t…

…ests
  • Loading branch information...
mattetti committed May 10, 2012
1 parent 8b5977d commit d92727161d3f2910df3ecd4f41619c03afd57dc7
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/http.rb
View
@@ -174,9 +174,8 @@ def connection(connection, didReceiveData:received_data)
def connection(connection, willSendRequest:request, redirectResponse:redirect_response)
puts "HTTP redirected #{request.description}" #if SETTINGS[:debug]
new_request = request.mutableCopy
- new_request.setValue(@credentials.inspect, forHTTPHeaderField:'Authorization')
+ # new_request.setValue(@credentials.inspect, forHTTPHeaderField:'Authorization') # disabled while we figure this one out
new_request.setAllHTTPHeaderFields(@headers) if @headers
- # p @request.allHTTPHeaderFields.description
@connection.cancel
@connection = NSURLConnection.connectionWithRequest(new_request, delegate:self)
new_request

0 comments on commit d927271

Please sign in to comment.