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 2022/07/13 14:08:51 UTC

[GitHub] [tomcat] funkman commented on pull request #524: Dir redirect use301

funkman commented on PR #524:
URL: https://github.com/apache/tomcat/pull/524#issuecomment-1183274376

   Looking at `org.apache.catalina.connector.Response` - Yes `sendRedirect()` does quite a few safety checks first. So yeah - this might have bad side effects with those missing checks. (such as isCommitted )
   
   I do notice a `sendRedirect(String location, int status)`  in `org.apache.catalina.connector.Response` which would be convenient to call instead and I just (re) checked https://javaee.github.io/javaee-spec/javadocs/javax/servlet/http/HttpServletResponse.html optimistically hoping `status` was a new option I missed. 


-- 
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-unsubscribe@tomcat.apache.org

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