I have my API setup like this:
url = URI.parse('https://www.reddit.com/search.json?q=' + @query + '&limit=' + @results)
response = Net::HTTP.get_response(URI(url))
now I get returned a HTTPTooManyRequest which is because Reddit blocks generic headers. So I am trying to modify my header, but I'm unable to find a way to add a header to a get_response method.
How could I add a User-agent header to this?