mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
parent
d60597ca0d
commit
1d5029e4e2
@ -49,7 +49,7 @@ class SymbolHandler:
|
|||||||
controller = Controller.instance()
|
controller = Controller.instance()
|
||||||
try:
|
try:
|
||||||
yield from response.file(controller.symbols.get_path(request.match_info["symbol_id"]))
|
yield from response.file(controller.symbols.get_path(request.match_info["symbol_id"]))
|
||||||
except (KeyError, FileNotFoundError):
|
except (KeyError, FileNotFoundError, PermissionError):
|
||||||
response.set_status(404)
|
response.set_status(404)
|
||||||
|
|
||||||
@Route.post(
|
@Route.post(
|
||||||
|
Loading…
Reference in New Issue
Block a user