summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <t.vanderlee@gen25.com>2022-01-20 17:13:34 +0100
committerGravatar Tom van der Lee <t.vanderlee@gen25.com>2022-01-20 17:13:34 +0100
commite9bcdac50d324871de267515f0da006ef89cdfee (patch)
treeb43bcf4e32830938d966dc6594e1ff27d090e1cd
parentfc845f2661be61b1a86501eed306cb0d7cb60d73 (diff)
downloadclient-e9bcdac50d324871de267515f0da006ef89cdfee.tar.gz
client-e9bcdac50d324871de267515f0da006ef89cdfee.tar.bz2
client-e9bcdac50d324871de267515f0da006ef89cdfee.zip
Dont follow redirectsv1.1.1
-rw-r--r--ttun/client.py3
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