yodatra 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yodatra/api_formatter.rb +1 -1
- data/lib/yodatra/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c6d5822736e53ff6508c964420807ddd21b7abd
|
4
|
+
data.tar.gz: 990e89e2a5fdff05394b7bb87146f1e1150049cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 728e15951d170373257863d8fcbe27dfd96de47be4659a00acd13cd69c7138c546adbc5e985ae376c1e24571bce3c133ffd9d9cdf33f7438eb721af888383ba3
|
7
|
+
data.tar.gz: eb054c340725b6a5bf0d6a609b5cb19a766f0aaff56a2d167d2ecf6d2d09ef0179eabd21520e33a0b7e7341fb1075171b6087231533be1dae4d19c8fac8e2ff1
|
@@ -15,7 +15,7 @@ module Yodatra
|
|
15
15
|
|
16
16
|
status, headers, response = @block.yield(status, headers, response) unless @block.nil?
|
17
17
|
|
18
|
-
headers['Content-Length'] = response.first.bytes.
|
18
|
+
headers['Content-Length'] = response.first.bytes.size.to_s unless response.nil? || !response.respond_to?(:first) || response.first.nil?
|
19
19
|
|
20
20
|
[status, headers, response]
|
21
21
|
end
|
data/lib/yodatra/version.rb
CHANGED