diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-07-09 12:43:55 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-07-09 12:43:55 +0100 |
commit | 2547fc90a8630aec7f31af8be0bebf5e6c68dca1 (patch) | |
tree | c1cb1b237e5f3ea896d3a474829b9e97f85b0294 | |
parent | 049198b25c7033ad6d69ec0907679025a54f89db (diff) |
Calls to API that are expected to return JSON are always expected to return something, even when there are no errors.
-rw-r--r-- | app/controllers/api_controller.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index 2ba88eb1a..6117435db 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -151,8 +151,9 @@ class ApiController < ApplicationController mail = RequestMailer.create_external_response(request, body, sent_at, attachment_hashes) request.receive(mail, mail.encoded, true) end - - head :no_content + render :json => { + 'url' => make_url("request", request.url_title), + } end def body_request_events |