Chenjp opened a new pull request, #782:
URL: https://github.com/apache/tomcat/pull/782

   request ranges validation - overlap detection added.
   
   * invalid ranges - overlapping:
   ```
   D:\git\github.com>curl http://localhost:55464/index.html -i -H "Range: 
bytes=10-40,35-50"
   HTTP/1.1 416
   Accept-Ranges: bytes
   Content-Range: bytes */957
   Content-Type: text/html;charset=utf-8
   Content-Language: zh-CN
   Content-Length: 753
   Date: Tue, 19 Nov 2024 03:03:56 GMT
   ```
   * valid ranges:
   ```
   D:\git\github.com>curl http://localhost:55464/index.html -i -H "Range: 
bytes=10-40,50-60"
   HTTP/1.1 206
   Accept-Ranges: bytes
   ETag: W/"957-1724403887512"
   Last-Modified: Fri, 23 Aug 2024 09:04:47 GMT
   Content-Type: multipart/byteranges; boundary=CATALINA_MIME_BOUNDARY
   Content-Length: 194
   Date: Tue, 19 Nov 2024 03:04:39 GMT
   
   
   --CATALINA_MIME_BOUNDARY
   Content-Range: bytes 10-40/957
   
   censed to the Apache Software F
   --CATALINA_MIME_BOUNDARY
   Content-Range: bytes 50-60/957
   
    (ASF) unde
   --CATALINA_MIME_BOUNDARY--
   ```


-- 
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: dev-unsubscr...@tomcat.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to