rack-jsonr 0.2.1 → 0.2.2
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
|
+
YjZkYWNhODI3NGU0YjhhZDVkMzI4ZDU3YzBjMDBkZWNlN2JmNzdkYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjgwYWUzNjhmMzYwMDQ5ZmIwNzkwYTdhYmQ1MjZkNGQ1OTI2MDgwNw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTlmZWFkZDlmZjYwNjJkNWM4ZGViZmQ5OGM2ZmFiN2Q2NTIyMmQ2OGU0NTY4
|
10
|
+
Mjc0ZDk2ZWJlOTI4NDJiYmI2N2ViNzNiMThlNjczMWNjNmJhOWE4ZDgyZDk2
|
11
|
+
MmY2NjkwN2Q0M2Y5MTc5ZTJmYmZiODFlNDhjNTQ0OWM4ZmU0Nzc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjFmZTBhYzI2NDA1MDg1ODE1MTcyYmUxNjBlZjM1OWY1MzZiZTk2NTJkZWNi
|
14
|
+
ZmIzMmI4ZWViNzRlODI0ZjcxYTdjOTliMDMxOGI1YTAyNTE2ZGU2NmNjMmQx
|
15
|
+
YjBjOGU0ZGQ5ZGIyMzNiMDcxNzhjYzQzNDU0N2M1ZjQ3N2ViMzM=
|
data/lib/rack/jsonr/jsonr.rb
CHANGED
@@ -56,7 +56,7 @@ module Rack
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def self.is_jsonp_request?(request)
|
59
|
-
(request.params.include?('callback') and request.get?)
|
59
|
+
(request.params.include?('callback') and (request.get? or request.env['rack.jsonr_method_override.original_method'] == 'GET'))
|
60
60
|
end
|
61
61
|
|
62
62
|
private
|
data/lib/rack/jsonr/version.rb
CHANGED