arsduo / batch_api

A Facebook-style, RESTful Batch API
MIT License
274 stars 52 forks source link

Calling request.params on non GET request throws error as rack.request.query_hash set to nil #20

Open joelmats opened 11 years ago

joelmats commented 11 years ago

Should set to empty hash instead in BatchApi::Operations::Rack

@env["rack.request.query_hash"] = @method == "get" ? @params : {}