lib/ocar/client.rb in ocar-0.1.0 vs lib/ocar/client.rb in ocar-0.2.0
- old
+ new
@@ -18,10 +18,11 @@
def setup_request track_id
requests = TYPES.map { |type|
request = Typhoeus::Request.new("http://www.oca.com.ar",
method: :get,
params: { q: "package-locator",
- type: type,number: track_id },
+ type: type,
+ number: track_id },
headers: { Accept: "text/html" }
)
$hydra.queue(request)
request
}