Python-Tls-Client icon indicating copy to clipboard operation
Python-Tls-Client copied to clipboard

Accept-Encoding in the default headers may cause coding problems

Open TRHX opened this issue 2 years ago • 3 comments
trafficstars

Accept-Encoding in the default headers may cause coding problems. Sample page: https://baijiahao.baidu.com/s?id=1758423924779809832 The garbled code is as shown in the figure below. It is normal to comment out Accept-Encoding.

image image

TRHX avatar Mar 08 '23 01:03 TRHX

I got the same problem with my site. How can I fix it 😓

MitTeen123 avatar Mar 11 '23 10:03 MitTeen123

I got the same problem with my site. How can I fix it 😓

Just modify the source code and comment out the Accept-Encoding field.

TRHX avatar Mar 13 '23 02:03 TRHX

You can also set your custom headers. You don't have to use default headers.

FlorianREGAZ avatar Mar 17 '23 20:03 FlorianREGAZ