hanami / api

Minimal, lightweight, fastest Ruby framework for HTTP APIs.

Home Page:https://hanamirb.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON POST body error when JSON contains "="

gottlike opened this issue · comments

I'm POSTing a JSON array of objects that can have all sorts of characters. I encountered the following error:

<Rack::QueryParser::InvalidParameterError: invalid %-encoding ({...}>

The error message stops at the point, where the property's value has === as a string. I'm assuming Rack is expecting a URL-encoded form string and it breaks somehow.

I'm using use Hanami::Middleware::BodyParser, :json, as recommended.