Commit 2db5614a authored by Alexandre's avatar Alexandre
Browse files

Define Accept header field

parent 14805ba7
......@@ -410,7 +410,7 @@ class ConnectionDoH(Connection):
if self.connect is not None:
self.check_ip_address(self.connect)
self.curl.setopt(pycurl.CONNECT_TO, [f'::{self.repraddress}:443',])
self.curl.setopt(pycurl.HTTPHEADER, ["Content-type: application/dns-message"])
self.curl.setopt(pycurl.HTTPHEADER, ["Accept: application/dns-message", "Content-type: application/dns-message"])
def end(self):
self.curl.close()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment