surf icon indicating copy to clipboard operation
surf copied to clipboard

Can't work with "gzip, deflate"

Open tutorial0 opened this issue 7 years ago • 1 comments

When add http.header like this:

head := http.Header{}
head.Set("Accept", "*/*")
head.Set("Accept-Encoding", "gzip, deflate")
head.Set("Connection", "keep-alive")
bow.SetHeadersJar(head)

Then method Body can only got garbled text like:

�Z�SW�<�W��Af����ĔF'�[)�jz���=v��C��D1�h⃨(����H4�A�Y�g�俰���s�l�R\�}���{��BߎG�?v�+c%�ا���d�D�@2y �;�A��a.�HqyMPtِUE(%�?�9

And many other method(like Title, Links) can't get expected results.

tutorial0 avatar Feb 25 '18 08:02 tutorial0

Hi, I've submitted PR #104 for this. Pretty straightforward.

ziscky avatar May 09 '18 17:05 ziscky