mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-03-25 08:55:49 +00:00
update header implementation for http.rb 1.x
This commit is contained in:
parent
f2bef30802
commit
3a0ca00e53
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ module Instapaper
|
|||
raw = @options.delete(:raw)
|
||||
@headers = Instapaper::HTTP::Headers.new(@client, @request_method, @uri, @options).request_headers
|
||||
options_key = @request_method == :get ? :params : :form
|
||||
response = ::HTTP.with(@headers).public_send(@request_method, @uri.to_s, options_key => @options)
|
||||
response = ::HTTP.headers(@headers).public_send(@request_method, @uri.to_s, options_key => @options)
|
||||
fail_if_error(response, raw)
|
||||
raw ? response.to_s : parsed_response(response)
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue