Removed not needed lines.
This commit is contained in:
parent
9167670b23
commit
95ad1ff355
1 changed files with 1 additions and 2 deletions
|
@ -268,6 +268,7 @@ returns
|
||||||
end
|
end
|
||||||
request
|
request
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.process(response, uri, count, params, options)
|
def self.process(response, uri, count, params, options)
|
||||||
if !response
|
if !response
|
||||||
return Result.new(
|
return Result.new(
|
||||||
|
@ -284,7 +285,6 @@ returns
|
||||||
:success => false,
|
:success => false,
|
||||||
:code => response.code,
|
:code => response.code,
|
||||||
)
|
)
|
||||||
|
|
||||||
when Net::HTTPClientError
|
when Net::HTTPClientError
|
||||||
return Result.new(
|
return Result.new(
|
||||||
:error => "Client Error: #{response.inspect}!",
|
:error => "Client Error: #{response.inspect}!",
|
||||||
|
@ -301,7 +301,6 @@ returns
|
||||||
raise "Too many redirections for the original URL, halting." if count <= 0
|
raise "Too many redirections for the original URL, halting." if count <= 0
|
||||||
url = response['location']
|
url = response['location']
|
||||||
return get(url, params, options, count - 1)
|
return get(url, params, options, count - 1)
|
||||||
|
|
||||||
when Net::HTTPOK
|
when Net::HTTPOK
|
||||||
data = nil
|
data = nil
|
||||||
if options[:json] && !options[:jsonParseDisable] && response.body
|
if options[:json] && !options[:jsonParseDisable] && response.body
|
||||||
|
|
Loading…
Reference in a new issue