lib/restfulie/client/feature/setup_header.rb in restfulie-1.0.0.beta1 vs lib/restfulie/client/feature/setup_header.rb in restfulie-1.0.0.beta4
- old
+ new
@@ -1,10 +1,10 @@
module Restfulie::Client::Feature
class SetupHeader
- def execute(flow, request, response, env)
+ def execute(flow, request, env)
headers = request.default_headers.dup.merge(request.headers)
host = request.host
if host.user || host.password
headers["Authorization"] = "Basic " + ["#{host.user}:#{host.password}"].pack("m").delete("\r\n")
end
@@ -12,10 +12,10 @@
headers['cookie'] = request.cookies if request.cookies
# gs: this should not be overriden, do it in some other way
request.headers = headers
- flow.continue(request, response, env)
+ flow.continue(request, env)
end
end
end
\ No newline at end of file