mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 22:11:14 +02:00
Merge branch 'master' into 1.5
This commit is contained in:
8 files changed
+102
-13
No files matched your search
@@ -37,6 +37,9 @@ class FileHandler:
|
||||
def read(request, response):
|
||||
response.enable_chunked_encoding()
|
||||
|
||||
if not request.json.get("location").endswith(".pcap"):
|
||||
raise aiohttp.web.HTTPForbidden(text="Only .pcap file are allowed")
|
||||
|
||||
try:
|
||||
with open(request.json.get("location"), "rb") as f:
|
||||
loop = asyncio.get_event_loop()
|
||||
|
||||
Reference in new issue
Block a user