commit | 15d87c252ba6e20a0da4cf667f899a2e7bca48fe | [log] [tgz] |
---|---|---|
author | postmasters <namnguyen@google.com> | Wed Apr 10 21:18:47 2019 |
committer | postmasters <namnguyen@google.com> | Thu Apr 11 02:19:44 2019 |
tree | e63f4adbab8d2c3a4cb9f7ffe3965a7c63ad5d6a | |
parent | ff077e24b83efb35dd82412f4f4ff0c2122b9074 [diff] |
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.