FlorianREGAZ / Python-Tls-Client

Advanced HTTP Library
MIT License
678 stars 135 forks source link

Accept-Encoding in the default headers may cause coding problems #43

Open TRHX opened 1 year ago

TRHX commented 1 year ago

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

MitTeen123 commented 1 year ago

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

TRHX commented 1 year ago

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.

FlorianREGAZ commented 1 year ago

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