Fix documentation line in for wasm Response

This commit is contained in:
Muhammad Hamza
2020-12-20 07:27:35 -08:00
committed by GitHub
parent 73990a7a42
commit 5ee4fe5ab6

View File

@@ -51,7 +51,7 @@ impl Response {
/// ///
/// - The server didn't send a `content-length` header. /// - The server didn't send a `content-length` header.
/// - The response is compressed and automatically decoded (thus changing /// - The response is compressed and automatically decoded (thus changing
// the actual decoded length). /// the actual decoded length).
pub fn content_length(&self) -> Option<u64> { pub fn content_length(&self) -> Option<u64> {
self.headers() self.headers()
.get(http::header::CONTENT_LENGTH)? .get(http::header::CONTENT_LENGTH)?