mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 19:24:10 +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
|
render nothing: :true, status: 409 and return
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
response.headers['X-WOPI-Lock'] = ''
|
response.headers['X-WOPI-Lock'] = ' '
|
||||||
render nothing: :true, status: 409 and return
|
render nothing: :true, status: 409 and return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -175,7 +175,7 @@ class WopiController < ActionController::Base
|
||||||
render nothing: :true, status: 409 and return
|
render nothing: :true, status: 409 and return
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
response.headers['X-WOPI-Lock'] = ''
|
response.headers['X-WOPI-Lock'] = ' '
|
||||||
render nothing: :true, status: 409 and return
|
render nothing: :true, status: 409 and return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -186,7 +186,7 @@ class WopiController < ActionController::Base
|
||||||
if @asset.locked?
|
if @asset.locked?
|
||||||
response.headers['X-WOPI-Lock'] = @asset.lock
|
response.headers['X-WOPI-Lock'] = @asset.lock
|
||||||
else
|
else
|
||||||
response.headers['X-WOPI-Lock'] = ''
|
response.headers['X-WOPI-Lock'] = ' '
|
||||||
end
|
end
|
||||||
render nothing: :true, status: 200 and return
|
render nothing: :true, status: 200 and return
|
||||||
end
|
end
|
||||||
|
@ -229,7 +229,7 @@ class WopiController < ActionController::Base
|
||||||
render nothing: :true, status: 200 and return
|
render nothing: :true, status: 200 and return
|
||||||
else
|
else
|
||||||
logger.warn 'WOPI: trying to modify unlocked file'
|
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
|
render nothing: :true, status: 409 and return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue