10000 Ignore the Accept-Encoding header as well when testing · staticdev/github4.py@45f8a5e · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

Commit 45f8a5e

Browse files
committed
Ignore the Accept-Encoding header as well when testing
1 parent 8aea64a commit 45f8a5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration/helper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def match(self, request, recorded_request):
4444
recorded_request = copy.deepcopy(recorded_request)
4545
request.headers.pop('User-Agent', None)
4646
recorded_request['headers'].pop('User-Agent', None)
47+
request.headers.pop('Accept-Encoding', None)
48+
recorded_request['headers'].pop('Accept-Encoding', None)
4749
return self.headers_matcher.match(request, recorded_request)
4850

4951

0 commit comments

Comments
 (0)
0