fix timestamp test
This commit is contained in:
parent
edf5a0f677
commit
af490bae8e
@ -13,7 +13,11 @@ class Hash
|
|||||||
end
|
end
|
||||||
|
|
||||||
def request_path path, params={}
|
def request_path path, params={}
|
||||||
uri = URI.parse ["#{HOST}/#{path}",params.to_param].join('&')
|
if params.any?
|
||||||
|
uri = URI.parse ["#{HOST}/#{path}",params.to_param].join('&')
|
||||||
|
else
|
||||||
|
uri = URI.parse "#{HOST}/#{path}"
|
||||||
|
end
|
||||||
Timeout.timeout(REQUEST_TIMEOUT) do
|
Timeout.timeout(REQUEST_TIMEOUT) do
|
||||||
Net::HTTP.get_response uri
|
Net::HTTP.get_response uri
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user