Fix error 404 on uimedia route

This commit is contained in:
shortcutme 2019-04-11 01:28:00 +02:00
parent ce7c22fd57
commit f94ecb3ec5
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -608,6 +608,7 @@ class UiRequest(object):
from Debug import DebugMedia
DebugMedia.merge(file_path)
return self.actionFile(file_path, header_length=False) # Dont's send site to allow plugins append content
else: # Bad url
return self.error400()
@ -701,7 +702,8 @@ class UiRequest(object):
file_obj.close()
break
else: # File not exists
yield self.error404(str(file_path))
for part in self.error404(str(file_path)):
yield part
# On websocket connection
def actionWebsocket(self):