Skip to content

Commit 7f8693e

Browse files
authored
🐛 Fix: Add default headers for authenticated HTTP methods (#7763)
1 parent aa81408 commit 7f8693e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/performance/common/base_user.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,31 @@ def __init__(self, *args, **kwargs):
3636
def authenticated_get(self, url, **kwargs):
3737
"""Make GET request with deployment auth"""
3838
kwargs.setdefault("auth", self.deploy_auth.to_auth())
39+
kwargs.setdefault("headers", {"Accept-Encoding": "gzip, deflate"})
3940
return self.client.get(url, **kwargs)
4041

4142
def authenticated_post(self, url, **kwargs):
4243
"""Make POST request with deployment auth"""
4344
kwargs.setdefault("auth", self.deploy_auth.to_auth())
45+
kwargs.setdefault("headers", {"Accept-Encoding": "gzip, deflate"})
4446
return self.client.post(url, **kwargs)
4547

4648
def authenticated_put(self, url, **kwargs):
4749
"""Make PUT request with deployment auth"""
4850
kwargs.setdefault("auth", self.deploy_auth.to_auth())
51+
kwargs.setdefault("headers", {"Accept-Encoding": "gzip, deflate"})
4952
return self.client.put(url, **kwargs)
5053

5154
def authenticated_delete(self, url, **kwargs):
5255
"""Make DELETE request with deployment auth"""
5356
kwargs.setdefault("auth", self.deploy_auth.to_auth())
57+
kwargs.setdefault("headers", {"Accept-Encoding": "gzip, deflate"})
5458
return self.client.delete(url, **kwargs)
5559

5660
def authenticated_patch(self, url, **kwargs):
5761
"""Make PATCH request with deployment auth"""
5862
kwargs.setdefault("auth", self.deploy_auth.to_auth())
63+
kwargs.setdefault("headers", {"Accept-Encoding": "gzip, deflate"})
5964
return self.client.patch(url, **kwargs)
6065

6166

0 commit comments

Comments
 (0)