tustvold commented on code in PR #4841:
URL: https://github.com/apache/arrow-rs/pull/4841#discussion_r1331670937


##########
object_store/src/http/client.rs:
##########
@@ -252,7 +256,19 @@ impl Client {
                     }
                 }
                 _ => Error::Request { source }.into(),
-            })
+            })?;
+
+        // We expect a 206 Partial Content response if a range was requested
+        // a 200 OK response would indicate the server did not fulfill the 
request
+        if has_range && res.status() == StatusCode::OK {

Review Comment:
   ```suggestion
           if has_range && res.status() != StatusCode::PARTIAL_CONTENT {
   ```



-- 
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