Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
grid5000
g5k-api
Commits
f97fdc6b
Commit
f97fdc6b
authored
Jul 20, 2020
by
Samir Noir
🧀
Browse files
Fix the read_timeout definition in http_request method
parent
a774c062
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/grid5000/router.rb
View file @
f97fdc6b
...
...
@@ -99,7 +99,7 @@ module Grid5000
def
http_request
(
method
,
uri
,
tls_options
,
timeout
=
nil
,
headers
=
{},
body
=
nil
)
uri
=
URI
(
uri
)
http
=
Net
::
HTTP
.
new
(
uri
.
host
,
uri
.
port
)
http
.
read_timeout
=
5
if
timeout
http
.
read_timeout
=
timeout
||
5
http
.
use_ssl
=
true
if
uri
.
scheme
==
'https'
if
tls_options
&&
!
tls_options
.
empty?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment