You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ChristopherSchultz <gi...@git.apache.org> on 2017/12/13 22:30:29 UTC

[GitHub] tomcat issue #96: Remove PUT and DELETE methods from an OPTIONS request if r...

Github user ChristopherSchultz commented on the issue:

    https://github.com/apache/tomcat/pull/96
  
    Patch looks good to me.
    
    Regarding your questions:
    
    > Why is a POST allowed when readOnly is true?
    
    Probably because the DefaultServlet just delegates POST -> GET, but ...
    
    > Why does a POST call GET internally?
    
    Good question. I suspect because that's what httpd does when making a POST request to a static resource.
    
    That code has not changed since 2006 (the initial import) so at this point, it's "legacy" and "backward-compatible" and extremely unlikely to change.


---

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