From 7b2c4126f90fc38a1db97f69729aced73867e419 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Mon, 13 Feb 2023 18:00:24 -0600 Subject: [PATCH] Use full url instead of path in middleware --- judge/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/middleware.py b/judge/middleware.py index ba44b02..b86731d 100644 --- a/judge/middleware.py +++ b/judge/middleware.py @@ -155,7 +155,7 @@ class SlowRequestMiddleware(object): if response_time > 9: message = { "message": "Slow request", - "path": request.path, + "url": request.build_absolute_uri(), "response_time": response_time * 1000, "method": request.method, "profile": request.profile,