aoli-al commented on issue #5689:
URL: https://github.com/apache/opendal/issues/5689#issuecomment-2697783381

   You may find more discussion 
[here](https://issues.chromium.org/issues/390229583#comment19). Sorry, I'm not 
familiar with web technologies. 
   
   Based on my understanding, when the server returns 206, it is legal for the 
server to return partial content no matter what `content-length` is set in the 
header. For example, if the client request ranges from 1-256, the server may 
respond 1-128 bytes but still with `content-length` set to 256. 
   
   So, a proper way to handle this is to 
   
   1. send range request
   2. get 206 responses and check the data length 
   3. if the data length is shorter than requested, issue another range request 
and return to 1. Otherwise, break. 
   
   
   Also, this is based on my observation of Chrome/Chromium. I don't know if 
other browsers behave the same way. 


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