Module: Skooma::BodyParsers::FormURLEncodedParser

Defined in:
lib/skooma/body_parsers.rb

Class Method Summary collapse

Class Method Details

.call(body, **_options) ⇒ Object



57
58
59
60
61
62
63
# File 'lib/skooma/body_parsers.rb', line 57

def self.call(body, **_options)
  Rack::Utils.parse_nested_query(body)
# The set of parse error classes differs across Rack 2/3; a malformed
# body falls back to the raw string so schema validation rejects it.
rescue
  body
end