ruby on rails - HTTParty get request ignores query params -


I'm trying to get a request with a quersytring, though, HTTParty is ignoring my parameters example For, I'm doing something like this:

  header = {"user-agent" = & gt; "Whatever", "authorization" = & gt; "Whatever"} option = {"sports" = & gt; "Mlb"} HTTParty.get ("https://www.erikberg.com/events.json", query: option, header: header)  

The response should be empty from tomorrow The MLB game was not running. I checked with curls and worked properly, however, when I use this gem I am getting NBA game (ignoring the ultimate game). I told the owner of the API and he told me that I am getting two redirects (302, 301).

Is there any sign of failure? Is my request really using https?

Best regards!


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -