lib/pupa/refinements/faraday_middleware.rb in pupa-0.1.5 vs lib/pupa/refinements/faraday_middleware.rb in pupa-0.1.6
- old
+ new
@@ -18,8 +18,8 @@
params = parse_query url.query
params.reject! {|k,| params_to_ignore.include? k }
url.query = params.any? ? build_query(params) : nil
end
url.normalize!
- url.request_uri + env[:body].to_s # XXX add for POST requests
+ url.host + url.request_uri + env[:body].to_s # XXX add for POST requests
end
end