Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Issue: should not check on response.Content.Headers.ContentLength #8

Open
luytk12 opened this issue Jan 17, 2022 · 0 comments
Open

Comments

@luytk12
Copy link

luytk12 commented Jan 17, 2022

CDO.cs, line 601
if ((response.Headers.TransferEncodingChunked.HasValue && response.Headers.TransferEncodingChunked.Value) ||
response.Content.Headers.ContentLength > 0)

In case TransferEncodingChunked is not used, you cannot check on response.Content.Headers.ContentLength because it is always null.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant