]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
simplify DoH POST
authorBob Halley <halley@dnspython.org>
Tue, 16 Jun 2020 17:20:48 +0000 (10:20 -0700)
committerBob Halley <halley@dnspython.org>
Tue, 16 Jun 2020 17:20:48 +0000 (10:20 -0700)
dns/query.py

index 6fe802d0c48d9d124e98500b9d5988ba4fcf6ad4..2763f894f3e7ec7f9e86940f968f9940ca5effe4 100644 (file)
@@ -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,