27 lines
893 B
Diff
27 lines
893 B
Diff
From 946b0613ac40d26713031053028a16da1f6c26f0 Mon Sep 17 00:00:00 2001
|
|
From: Dave Trollope <dave@knowledgehound.com>
|
|
Date: Fri, 7 Sep 2018 14:35:10 -0500
|
|
Subject: [PATCH] fix query param matching
|
|
|
|
---
|
|
httpretty/core.py | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/httpretty/core.py b/httpretty/core.py
|
|
index 92dd8a9..8da3428 100644
|
|
--- a/httpretty/core.py
|
|
+++ b/httpretty/core.py
|
|
@@ -991,7 +991,8 @@ class URIMatcher(object):
|
|
|
|
def matches(self, info):
|
|
if self.info:
|
|
- return self.info == info
|
|
+ # Query string is not considered when comparing info objects, compare separately
|
|
+ return self.info == info and (not self._match_querystring or self.info.query == info.query)
|
|
else:
|
|
return self.regex.search(info.full_url(
|
|
use_querystring=self._match_querystring))
|
|
--
|
|
2.39.0.windows.2
|
|
|