prefer head

This commit is contained in:
pavel 2017-09-08 14:56:58 +02:00
parent 3c3e2aabdd
commit 37183ae3f3
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class DmsfFolderPermissionsController < ApplicationController
def append
@principals = Principal.where(:id => params[:user_ids]).to_a
render :nothing => true if @principals.blank?
head 200 if @principals.blank?
end
def autocomplete_for_user

View File

@ -78,7 +78,7 @@ class DmsfUploadController < ApplicationController
# REST API and Redmine attachment form
def upload
unless request.content_type == 'application/octet-stream'
render :nothing => true, :status => 406
head 406
return
end