File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11--- request_profiler.orig/models.py 2020-06-05 14:33:10.408859604 +0200
22+++ request_profiler/models.py 2020-06-05 14:35:09.412282408 +0200
3- @@ -181 ,7 +181 ,7 @@
3+ @@ -182 ,7 +182 ,7 @@
44 """Extract values from HttpRequest and store locally."""
55 self.request = request
66 self.http_method = request.method
99 self.query_string = request.META.get("QUERY_STRING", "")
1010 self.http_user_agent = request.META.get("HTTP_USER_AGENT", "")[:400]
1111 # we care about the domain more than the URL itself, so truncating
12- @@ -189 ,11 +189 ,7 @@
12+ @@ -190 ,11 +190 ,7 @@
1313 self.http_referer = request.META.get("HTTP_REFERER", "")[:400]
1414 # X-Forwarded-For is used by convention when passing through
1515 # load balancers etc., as the REMOTE_ADDR is rewritten in transit
2222 # these two require middleware, so may not exist
2323 if hasattr(request, "session"):
2424 self.session_key = request.session.session_key or ""
25- @@ -206 ,7 +202 ,10 @@
25+ @@ -207 ,7 +203 ,10 @@
2626 """Extract values from HttpResponse and store locally."""
2727 self.response = response
2828 self.response_status_code = response.status_code
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ django-markup>=1.1
1919django-oidc-provider >= 0.7
2020django-password-strength >= 1.2.1
2121django-referrer-policy >= 1.0
22- django-request-profiler == 0.14 # 0.15 and above requires Django 2.x
22+ django-request-profiler >= 0.15 # 0.15 and above requires Django 2.x
2323django-simple-history >= 2.3.0
2424django-stubs == 1.3.0
2525django-tastypie >= 0.14.1 # For Django 2.0. Django 2.1 will require 0.14.2; Django 3.0 will require 0.14.3
You can’t perform that action at this time.
0 commit comments