From: Bob Halley Date: Tue, 16 Jun 2020 17:20:48 +0000 (-0700) Subject: simplify DoH POST X-Git-Tag: v2.0.0rc1~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01974aaca96a990eb4587349333e95615438177b;p=thirdparty%2Fdnspython.git simplify DoH POST --- diff --git a/dns/query.py b/dns/query.py index 6fe802d0..2763f894 100644 --- a/dns/query.py +++ b/dns/query.py @@ -347,8 +347,7 @@ def https(q, where, timeout=None, port=443, source=None, source_port=0, "content-length": str(len(wire)) }) response = session.post(url, headers=headers, data=wire, - stream=True, timeout=timeout, - verify=verify) + timeout=timeout, verify=verify) else: wire = base64.urlsafe_b64encode(wire).rstrip(b"=") response = session.get(url, headers=headers,