diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-14 08:13:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-14 08:13:55 +0000 |
commit | 18f693f9f7c1ff0a32ddda9b6ea43a4bb1fe28e1 (patch) | |
tree | 7b5be61fb040bb64bdaff1726a746fe82e149810 /app/controllers/versions_controller.rb | |
parent | 6bf60e8c206b3c75d18c824cb8b98b10a6d6a69c (diff) | |
download | redmine-18f693f9f7c1ff0a32ddda9b6ea43a4bb1fe28e1.tar.gz redmine-18f693f9f7c1ff0a32ddda9b6ea43a4bb1fe28e1.zip |
Fixed that 200 API responses have a body containing one space (#11388).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9975 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/versions_controller.rb')
-rw-r--r-- | app/controllers/versions_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb index cd7e03339..dcee97c85 100644 --- a/app/controllers/versions_controller.rb +++ b/app/controllers/versions_controller.rb @@ -144,7 +144,7 @@ class VersionsController < ApplicationController flash[:notice] = l(:notice_successful_update) redirect_back_or_default :controller => 'projects', :action => 'settings', :tab => 'versions', :id => @project } - format.api { head :ok } + format.api { render_api_ok } end else respond_to do |format| @@ -167,7 +167,7 @@ class VersionsController < ApplicationController @version.destroy respond_to do |format| format.html { redirect_back_or_default :controller => 'projects', :action => 'settings', :tab => 'versions', :id => @project } - format.api { head :ok } + format.api { render_api_ok } end else respond_to do |format| |