Unity's built-in http library does not always return response headers or status
codes. If the X-Unity-Response
request header is set, this middleware wraps
the response status code, headers and body inside a json object in the response
body. It also sets the response status code to 200, as unity cannot handle
non-200 responses properly.
Add this line to your application's Gemfile:
gem 'unity-middleware'
And then execute:
$ bundle
Or install it yourself as:
$ gem install unity-middleware
TODO: Write usage instructions here
- Fork it ( https://github.com/pocket-playlab/unity-middleware/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request