lib/pupa/refinements/faraday_middleware.rb in pupa-0.0.13 vs lib/pupa/refinements/faraday_middleware.rb in pupa-0.1.0

- old
+ new

@@ -15,10 +15,10 @@ def cache_key(env) url = env[:url].dup if url.query && params_to_ignore.any? params = parse_query url.query params.reject! {|k,| params_to_ignore.include? k } - url.query = build_query params + url.query = params.any? ? build_query(params) : nil end url.normalize! url.request_uri + env[:body].to_s # XXX add for POST requests end end