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