You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by GitBox <gi...@apache.org> on 2020/07/20 15:30:25 UTC

[GitHub] [tomcat] stokito commented on pull request #325: Simplify ETag check

stokito commented on pull request #325:
URL: https://github.com/apache/tomcat/pull/325#issuecomment-661111650


   Thank you, good points! I checked spec https://tools.ietf.org/html/rfc7232#section-2.3.2 and it looks like we still fine here because Tomcat in fact should do a weak comparison.
   
   |If-None-Match | Real resource's ETag | Match              |
   |--------------------|-----------------------------|---------------------|
   |`W/"1"`            | `W/"1"`                       | Yes                   |
   |`"1"`                | `W/"1"`                       | No.                    |
   |`W/"1"`            | `"1"`                           | Yes, as in spec |
   |`"1"`                | `"1"`                           | Yes                    |
   |`W/"1", "1"`     | `"1"`                           | Yes                    |
   |`W/"1", "2"`     | `W/"2"`                       | No                     |
   
   


----------------------------------------------------------------
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:
users@infra.apache.org



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