zhanhb edited a comment on issue #174: Clean method parseRange URL: https://github.com/apache/tomcat/pull/174#issuecomment-505224327 https://github.com/apache/tomcat/blob/54ea770e6213a7bed64ac9d90d7cfcf2dffc6a61/java/org/apache/catalina/servlets/DefaultServlet.java#L1390-L1394 How abouting chaning Line 1391 to ```java if (!rangeHeader.startsWith("bytes=")) { ``` Definition in rfc 2068 and rfc 7233 are same, syntax of request header 'Range' will always begin with that. Client should not send malformed range header such as `Range: bytes 1-2` or even `Range: bytes11-20`(we will parse that as if `bytes=1-20`).
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org