From 5f88db93ffcaba40fd2630050f89a2d7f249510e Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 4 Jul 2016 15:00:46 +0200 Subject: [PATCH] Add the method in the bad request answer --- gns3server/web/route.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/web/route.py b/gns3server/web/route.py index 4511cbc2..c588a0a0 100644 --- a/gns3server/web/route.py +++ b/gns3server/web/route.py @@ -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)