nxt_http_client 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/nxt_http_client/client.rb +2 -2
- data/lib/nxt_http_client/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: 1388541ad2849565c2ccffc0d8848859c3639e001cadc6398b3390673fa7eeba
|
4
|
+
data.tar.gz: 15e22dc002c5afef094d3b529a7d98b551ad99394312fff373b5c994e958d6ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41ba5224d1901b0f7ab52e7306efac4566bd2ae8c3205a66f1712e07200172f640b43f38c4f87e52e65d08a59dc63bf40073b734ca167f1202821e171d2e29d1
|
7
|
+
data.tar.gz: 60f74a74e6ed0afa02e4b6a0f46abe1eaea07c7f58635502c3c5285651235e2a1cf8a5895c5d502c883ce032a81cc6102ff5740e31dbff8e004578080b8c695c
|
data/Gemfile.lock
CHANGED
@@ -41,7 +41,7 @@ module NxtHttpClient
|
|
41
41
|
request = build_request(url, opts.except(:response_handler))
|
42
42
|
|
43
43
|
before_fire_callback = self.class.before_fire_callback
|
44
|
-
before_fire_callback && instance_exec(request, response_handler, &before_fire_callback)
|
44
|
+
before_fire_callback && instance_exec(self, request, response_handler, &before_fire_callback)
|
45
45
|
|
46
46
|
if response_handler.callbacks['headers']
|
47
47
|
request.on_headers do |response|
|
@@ -67,7 +67,7 @@ module NxtHttpClient
|
|
67
67
|
after_fire_callback = self.class.after_fire_callback
|
68
68
|
|
69
69
|
if after_fire_callback
|
70
|
-
result = instance_exec(request, response, result, error, &after_fire_callback)
|
70
|
+
result = instance_exec(self, request, response, result, error, &after_fire_callback)
|
71
71
|
else
|
72
72
|
result || (raise error)
|
73
73
|
end
|