Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b135e4 commit 59f0da3Copy full SHA for 59f0da3
1 file changed
lib/request/connect.py
@@ -329,7 +329,9 @@ def getPage(**kwargs):
329
if kb.proxyAuthHeader:
330
headers[HTTP_HEADER.PROXY_AUTHORIZATION] = kb.proxyAuthHeader
331
332
- headers[HTTP_HEADER.ACCEPT] = HTTP_ACCEPT_HEADER_VALUE
+ if HTTP_HEADER.ACCEPT not in headers:
333
+ headers[HTTP_HEADER.ACCEPT] = HTTP_ACCEPT_HEADER_VALUE
334
+
335
headers[HTTP_HEADER.ACCEPT_ENCODING] = HTTP_ACCEPT_ENCODING_HEADER_VALUE if kb.pageCompress else "identity"
336
headers[HTTP_HEADER.HOST] = host or getHostHeader(url)
337
0 commit comments