according to RFC2616, HTTP STATUS 1xx, 204, and 304 doesn't have a HTTP body.
| 61 | // according to RFC2616, HTTP STATUS 1xx, 204, and 304 doesn't have a HTTP |
| 62 | // body. |
| 63 | bool ResponseStatusHasContent(int http_status) |
| 64 | { |
| 65 | return http_status >= 200 && http_status != 204 && http_status != 304; |
| 66 | } |
| 67 | |
| 68 | void AppendHeaderToRequest(const std::string& path, |
| 69 | const HttpHeaders& headers, |