Use truth test instead of length == 0

`length` is initially set to `None`. When there is no `Content-Length`
header, `length` will still be `None`. So the test `length == 0` is not
entirely correct.
2 files changed