rack-jsonr 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/rack/jsonr/jsonr.rb +1 -1
- data/lib/rack/jsonr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmVhODZiYzRmZDAxYTE3YTYxNDU5NTYyMjMwZDI1OTVmZTEwNmU5Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTAwNmRlNTMyY2E2OGU5NDcwMGRhYjVjY2UzYzNlMDhiZWU0ZDEzNA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Mzc1ZDIzNjkyYmQ5YmFmNGY1ZTc5NmNmZjJkZTc4YzFiNmZjZjk2ZjllMzYz
|
10
|
+
OWI0MWRjNWZjYzlkMTQ4M2JmNDlhODY0MWFiODA0M2FiNDk2MjU4MjkwMzBj
|
11
|
+
N2E3MzljYzIzNTJmMmQwODZjZDM3NmJiZTdkYjAwNjgyZWQ3NTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGYxYWIzZDE5MTBmYWVjYzE2MjVmMTY3MGM5ZjFhMWViN2FmOGE0MzQzYWIy
|
14
|
+
YjA5N2M4ZDQ5NjRhZWJkNWU5NTRlMTVhZmI3YmMyMjUzOGViOTYxNmE1M2Rk
|
15
|
+
OWY2YzY5NGVjZmJjZGJlMDI4NjRlOGUyOWNhYzBlYzg1ODg1ZTI=
|
data/lib/rack/jsonr/jsonr.rb
CHANGED
@@ -64,7 +64,7 @@ module Rack
|
|
64
64
|
def format_jsonp(callback, status, headers, response, x_headers={}, body='')
|
65
65
|
headers.each {|k,v| x_headers[k] = v if (k =~ /^X-.+/i) }
|
66
66
|
response.each {|v| body << v.to_s }
|
67
|
-
["#{callback}(#{body}, #{status}, #{x_headers})"]
|
67
|
+
["#{callback}(#{body}, #{status}, #{x_headers.to_json})"]
|
68
68
|
end
|
69
69
|
|
70
70
|
end
|
data/lib/rack/jsonr/version.rb
CHANGED