mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-13 20:08:55 +00:00
Add the method in the bad request answer
This commit is contained in:
parent
e0a2553be4
commit
5f88db93ff
@ -180,7 +180,7 @@ class Route(object):
|
||||
except aiohttp.web.HTTPBadRequest as e:
|
||||
response = Response(request=request, route=route)
|
||||
response.set_status(e.status)
|
||||
response.json({"message": e.text, "status": e.status, "path": route, "request": request.json})
|
||||
response.json({"message": e.text, "status": e.status, "path": route, "request": request.json, "method": request.method})
|
||||
except aiohttp.web.HTTPException as e:
|
||||
response = Response(request=request, route=route)
|
||||
response.set_status(e.status)
|
||||
|
Loading…
Reference in New Issue
Block a user