kirin_http 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kirin_http/http_client.rb +3 -1
- data/lib/kirin_http/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: c9dc6ffd55b18537229dbad28bd8f9bb56b1e2d50a51f84172c996de348c5c86
|
4
|
+
data.tar.gz: 6a546950fad80ac3cab6ac1b2a27e22d2afaa430c297a6d973fa96526663fe32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfad0234669bbea3ac8333de654558a3ab137038e871885a6358fb92140b7203fb88a648e3e8e2cd3f968a992b30d80ef82ea72119c6d52ababb129165e5d47b
|
7
|
+
data.tar.gz: 18449a15a115fd6c3e081abaee7ebb2abc47a42320426e54c0c461de1d4bcf2da16d1c3f0b1e5fbfaaebc55b4e0451925fa3a783d6bd1355943fd785c7f943fc
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "net/http"
|
2
|
+
|
1
3
|
module KirinHttp
|
2
4
|
class Client
|
3
5
|
# Sends the http message
|
@@ -31,7 +33,7 @@ module KirinHttp
|
|
31
33
|
req = type.new(request.path, request.header)
|
32
34
|
req.body = request.content unless request.content.nil?
|
33
35
|
resp = http.request(req)
|
34
|
-
Response.new(resp.body, resp.to_hash, resp.code)
|
36
|
+
Response.new(resp.body, resp.to_hash, resp.code.to_i)
|
35
37
|
end
|
36
38
|
end
|
37
39
|
|
data/lib/kirin_http/version.rb
CHANGED