lib/sparrow/strategies/ignore.rb in cp-sparrow-0.0.14 vs lib/sparrow/strategies/ignore.rb in cp-sparrow-0.0.15
- old
+ new
@@ -44,11 +44,11 @@
def handle
# synchronize rack.input and form hash values
input = @env[HttpMessage::RACK_INPUT_KEY].gets
begin
- @env[HttpMessage::FORM_HASH_KEY] = MultiJson.load(input)
- rescue MultiJson::ParseError
+ @env[HttpMessage::FORM_HASH_KEY] = JSON.parse(input)
+ rescue JSON::ParserError
# ignore
ensure
@env[HttpMessage::RACK_INPUT_KEY].rewind
end if input.present?