servme 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/servme/responder.rb +2 -1
- data/lib/servme/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: 1d935b7679782e29a83c4f21bbe7e378247a4ccf
|
4
|
+
data.tar.gz: f19b3ecc4294ddd56e56ea6872f4e5447a7db798
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 596ba826c0b4f03f0ae2d5005e501aac204c39679e6d729756da4cad6e9fbd6478c32da30437dc2e00f3423cc9b4510b85a4fb8c5cfe055f48011e40139b86e3
|
7
|
+
data.tar.gz: d0c2063852e880e307ec2d3433f424202758823297d6df8dd725fc31baf2704bf924542aa7f323201e280bdaae1a7565aa3b85fb1bcae3fa48022c2c8af88793
|
data/lib/servme/responder.rb
CHANGED
@@ -65,7 +65,8 @@ module Servme
|
|
65
65
|
private
|
66
66
|
|
67
67
|
def process_json_request(request)
|
68
|
-
|
68
|
+
request_params = request.params rescue nil
|
69
|
+
if request_params && request_params.empty? && request.env && request.env['CONTENT_TYPE'] =~ /application\/json/
|
69
70
|
parsed_json = JSON.parse(request.body.read)
|
70
71
|
parsed_json.each do |k,v|
|
71
72
|
request.params[k] = v
|
data/lib/servme/version.rb
CHANGED