haocs
haocs
@pornel - I see, thank you for the clarification. Is there a way to config super agent to follow 300 redirect?
Thanks @Lukasa However, setting `chunk_size` to `1` or `None` did not change the results in my case. It seems that my issue is related to https://github.com/kennethreitz/requests/issues/2020 . Requests somehow handles...
I tried with v2.11 but saw the same issue. Does `iter_content` chunk the data based on the chuck_size provided by server?
Even with `chunk_size=None`, the length of content generated from `iter_content` is different to `chunk_size` from server. ``` # r.iter_contents(chunk_size=None) [length of chunk] 0x4d b'2016-09-20T21:41:52 Welcome, you are now connected to...
yes, I tested against v2.11.1. Requests works fine with `https://mkcert.org/generate/`. One difference I noticed is that chunks from my testing server contains a `\r\n` explicitly at the end of each...
I understand the end `\r\n` of each chunk should not be counted in chunk_size. But another `\r\n` should be, right? However, per my testing, requests ignored both `\r\n` if I...
What's the urllib3 version shipped with requests v2.11?
Ok, I could repro this "issue" with urllib3. If I use urllib3 and set `accept_encoding=True`, it will give me exactly what. Seems Requests by default set header `Accept-Encoding=Ture` if called...
Yes. After I set `headers={'Accept-Encoding': 'identity'}`, `iter_content(chunk_size=None, decode_unicode=False)` worked as expected.
Since I could observe same problem using curl or urllib3 with gzip enabled, obviously this not necessary to be an issue of requests. Thank you very much for the help,...