1
0
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:
Julien Duponchelle 2016-07-04 15:00:46 +02:00
parent e0a2553be4
commit 5f88db93ff
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -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)