mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
added blank string to wopi-lock header param
This commit is contained in:
parent
87ffa7f03b
commit
226d5d8247
1 changed files with 4 additions and 4 deletions
|
@ -128,7 +128,7 @@ class WopiController < ActionController::Base
|
|||
render nothing: :true, status: 409 and return
|
||||
end
|
||||
else
|
||||
response.headers['X-WOPI-Lock'] = ''
|
||||
response.headers['X-WOPI-Lock'] = ' '
|
||||
render nothing: :true, status: 409 and return
|
||||
end
|
||||
end
|
||||
|
@ -175,7 +175,7 @@ class WopiController < ActionController::Base
|
|||
render nothing: :true, status: 409 and return
|
||||
end
|
||||
else
|
||||
response.headers['X-WOPI-Lock'] = ''
|
||||
response.headers['X-WOPI-Lock'] = ' '
|
||||
render nothing: :true, status: 409 and return
|
||||
end
|
||||
end
|
||||
|
@ -186,7 +186,7 @@ class WopiController < ActionController::Base
|
|||
if @asset.locked?
|
||||
response.headers['X-WOPI-Lock'] = @asset.lock
|
||||
else
|
||||
response.headers['X-WOPI-Lock'] = ''
|
||||
response.headers['X-WOPI-Lock'] = ' '
|
||||
end
|
||||
render nothing: :true, status: 200 and return
|
||||
end
|
||||
|
@ -229,7 +229,7 @@ class WopiController < ActionController::Base
|
|||
render nothing: :true, status: 200 and return
|
||||
else
|
||||
logger.warn 'WOPI: trying to modify unlocked file'
|
||||
response.headers['X-WOPI-Lock'] = ''
|
||||
response.headers['X-WOPI-Lock'] = ' '
|
||||
render nothing: :true, status: 409 and return
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue