Merge pull request #762 from ahorek/heads

nothing is deprecated
This commit is contained in:
Karel Picman 2017-09-08 15:00:13 +02:00 committed by GitHub
commit c633a0b6bd
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