kenichi / angelo

Sinatra-like DSL for Reel that supports WebSockets and SSE
Other
303 stars 23 forks source link

JSON array body support #49

Closed kenichi closed 9 years ago

kenichi commented 9 years ago

@gunnarmarten this should allow for what you want to do. at the very least, it should not crash the server anymore.

@tommay if you have a chance, i'd appreciate your thoughts on this as well.

what happens here is if you POST to /?foo=bar with a JSON array body, it will not get merged in to params, instead the parsed array will be available from the new request_body reader. in all other cases, request_body is functionally the same as request.body.to_s.

see #48

tommay commented 9 years ago

This sounds like the right thing for the right reasons to me.