diff options
| author | 2022-01-20 17:13:34 +0100 | |
|---|---|---|
| committer | 2022-01-20 17:13:34 +0100 | |
| commit | e9bcdac50d324871de267515f0da006ef89cdfee (patch) | |
| tree | b43bcf4e32830938d966dc6594e1ff27d090e1cd | |
| parent | fc845f2661be61b1a86501eed306cb0d7cb60d73 (diff) | |
| download | client-1.1.1.tar.gz client-1.1.1.tar.bz2 client-1.1.1.zip | |
Dont follow redirectsv1.1.1
| -rw-r--r-- | ttun/client.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ttun/client.py b/ttun/client.py index 8be013b..eac40da 100644 --- a/ttun/client.py +++ b/ttun/client.py | |||
| @@ -85,7 +85,8 @@ class Client: | |||
| 85 | url=f'http://localhost:{self.port}{request["path"]}', | 85 | url=f'http://localhost:{self.port}{request["path"]}', |
| 86 | headers=request['headers'], | 86 | headers=request['headers'], |
| 87 | cookies=request['cookies'], | 87 | cookies=request['cookies'], |
| 88 | data=b64decode(request['body'].encode()) | 88 | data=b64decode(request['body'].encode()), |
| 89 | allow_redirects=False | ||
| 89 | ) | 90 | ) |
| 90 | end = perf_counter() | 91 | end = perf_counter() |
| 91 | 92 | ||
