Rohde-Schwarz / sparrow

Define your request and response JSON format with a Rack middleware!
MIT License
13 stars 6 forks source link

If response_body was an array, response wouldn't have been transformed #12

Closed mrcljx closed 9 years ago

mrcljx commented 9 years ago

@dsci asked whether I could make a PR for this.

Simplfied/improved some code along the way. Didn't add a proper unit test for this though (and currently don't have the time to add one). Feel free to reject it if that's a no-go for you.