prefer head
This commit is contained in:
parent
3c3e2aabdd
commit
37183ae3f3
@ -37,7 +37,7 @@ class DmsfFolderPermissionsController < ApplicationController
|
|||||||
|
|
||||||
def append
|
def append
|
||||||
@principals = Principal.where(:id => params[:user_ids]).to_a
|
@principals = Principal.where(:id => params[:user_ids]).to_a
|
||||||
render :nothing => true if @principals.blank?
|
head 200 if @principals.blank?
|
||||||
end
|
end
|
||||||
|
|
||||||
def autocomplete_for_user
|
def autocomplete_for_user
|
||||||
|
|||||||
@ -78,7 +78,7 @@ class DmsfUploadController < ApplicationController
|
|||||||
# REST API and Redmine attachment form
|
# REST API and Redmine attachment form
|
||||||
def upload
|
def upload
|
||||||
unless request.content_type == 'application/octet-stream'
|
unless request.content_type == 'application/octet-stream'
|
||||||
render :nothing => true, :status => 406
|
head 406
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user