lib/wcc/contentful/simple_client.rb in wcc-contentful-1.3.2 vs lib/wcc/contentful/simple_client.rb in wcc-contentful-1.4.0.rc1
- old
+ new
@@ -122,9 +122,10 @@
Authorization: "Bearer #{@access_token}"
}.merge(headers || {})
q = @query_defaults.dup
q = q.merge(query) if query
+ q.compact!
start = Process.clock_gettime(Process::CLOCK_MONOTONIC)
loop do
resp = @adapter.get(url, q, headers)