I have a before_request
for all ActiveRestClient calls, but the server is responding with a 204 No Content on some actions. This causes an error:
MultiJson::LoadError in FilesController#update 795: unexpected token at ''
This is the before_request
:
before_request do |name, request|
request.headers["Accept"] = 'application/json'
request.headers["Content-Type"] = 'application/json'
end
How can I accept some responses to be no content when using ActiveRestClient?