mihari 5.4.8 → 5.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mihari/http.rb +3 -1
- data/lib/mihari/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1075febacca36de11c1285b0c08ef54fb41d3c0c7fe3e3df51b2dff28c597fe4
|
4
|
+
data.tar.gz: 56475aef95d5dd5fda32ef7a8633fc2d064219abdb05706d849f15f998c41db2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e18c315a2389a836aff99fd1da1c50749e83d9272a79c1215d22cd649758c3fd6d74dfabc1445d2c1127b18ea100abebd21326766bc2da79cd5c77a9ba27da3d
|
7
|
+
data.tar.gz: 696b2c8d8e045f647f33a25dceec868676f2e04a8a38cc1e55cfe357356e5a5282f6b42085c2a8c4277d7309e47d8724d86c05d63ec8baf8937bd65dc8cf97cd
|
data/lib/mihari/http.rb
CHANGED
@@ -33,7 +33,9 @@ module Mihari
|
|
33
33
|
# @return [::HTTP::Client]
|
34
34
|
#
|
35
35
|
def build(headers: {}, timeout: nil)
|
36
|
-
::HTTP.use(:better_error).headers(headers)
|
36
|
+
client = ::HTTP.use(:better_error).headers(headers)
|
37
|
+
client.timeout(timeout) unless timeout.nil?
|
38
|
+
client
|
37
39
|
end
|
38
40
|
end
|
39
41
|
end
|
data/lib/mihari/version.rb
CHANGED