Skip to content

Commit 48d1cd8

Browse files
committed
Increased the required version of request-profiler and updated its patch file.
- Legacy-Id: 17922
1 parent 5139027 commit 48d1cd8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

patch/fix-request-profiler-streaming-length.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
@@ -9,7 +9,7 @@
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
@@ -22,7 +22,7 @@
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

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ django-markup>=1.1
1919
django-oidc-provider>=0.7
2020
django-password-strength>=1.2.1
2121
django-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
2323
django-simple-history>=2.3.0
2424
django-stubs==1.3.0
2525
django-tastypie>=0.14.1 # For Django 2.0. Django 2.1 will require 0.14.2; Django 3.0 will require 0.14.3

0 commit comments

Comments
 (0)