Zheaoli commented on code in PR #3907:
URL: 
https://github.com/apache/incubator-opendal/pull/3907#discussion_r1441429227


##########
core/src/raw/http_util/client.rs:
##########
@@ -167,11 +168,13 @@ impl HttpClient {
         })?;
 
         // Get content length from header so that we can check it.
-        // If the request method is HEAD, we will ignore this.
-        let content_length = if is_head {
+        //
+        // - If the request method is HEAD, we will ignore content length.
+        // - If response contains content_encoding, we should omit it's 
content length.

Review Comment:
   I propose that update the comment to mention that this trick would only be 
available in WASM32



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to