From 48d1cd8bb605624cab62afe970aeeb5bfd20a653 Mon Sep 17 00:00:00 2001
From: Henrik Levkowetz <henrik@levkowetz.com>
Date: Sat, 6 Jun 2020 21:15:10 +0000
Subject: [PATCH] Increased the required version of request-profiler and
 updated its patch file.  - Legacy-Id: 17922

---
 patch/fix-request-profiler-streaming-length.patch | 6 +++---
 requirements.txt                                  | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/patch/fix-request-profiler-streaming-length.patch b/patch/fix-request-profiler-streaming-length.patch
index 52f49cc7a..ff7942eba 100644
--- a/patch/fix-request-profiler-streaming-length.patch
+++ b/patch/fix-request-profiler-streaming-length.patch
@@ -1,6 +1,6 @@
 --- request_profiler.orig/models.py	2020-06-05 14:33:10.408859604 +0200
 +++ request_profiler/models.py	2020-06-05 14:35:09.412282408 +0200
-@@ -181,7 +181,7 @@
+@@ -182,7 +182,7 @@
          """Extract values from HttpRequest and store locally."""
          self.request = request
          self.http_method = request.method
@@ -9,7 +9,7 @@
          self.query_string = request.META.get("QUERY_STRING", "")
          self.http_user_agent = request.META.get("HTTP_USER_AGENT", "")[:400]
          # we care about the domain more than the URL itself, so truncating
-@@ -189,11 +189,7 @@
+@@ -190,11 +190,7 @@
          self.http_referer = request.META.get("HTTP_REFERER", "")[:400]
          # X-Forwarded-For is used by convention when passing through
          # load balancers etc., as the REMOTE_ADDR is rewritten in transit
@@ -22,7 +22,7 @@
          # these two require middleware, so may not exist
          if hasattr(request, "session"):
              self.session_key = request.session.session_key or ""
-@@ -206,7 +202,10 @@
+@@ -207,7 +203,10 @@
          """Extract values from HttpResponse and store locally."""
          self.response = response
          self.response_status_code = response.status_code
diff --git a/requirements.txt b/requirements.txt
index a920d30d9..88257d323 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -19,7 +19,7 @@ django-markup>=1.1
 django-oidc-provider>=0.7
 django-password-strength>=1.2.1
 django-referrer-policy>=1.0
-django-request-profiler==0.14   # 0.15 and above requires Django 2.x
+django-request-profiler>=0.15   # 0.15 and above requires Django 2.x
 django-simple-history>=2.3.0
 django-stubs==1.3.0
 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