Title: [PATCH] Catalina CGIServlet broken redirects

Hello,

The Catalina CGIServlet (as of tomcat 5.0.28) does not have a special case for handling "Status" headers set by a cgi script.  When a script tries to issue a redirect, tomcat returns inconsistent headers:

  HTTP/1.x 200 OK
  Status: 300 Moved

This behaviour breaks the redirect.  Attached is a patch which adds a special case for Status headers to

  catalina/src/share/org/apache/catalina/servlets/CGIServlet.java

The patch was written against the tomcat 5.0.28 sources.

Cheers,

Patrick May


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick May
Software Engineer
SourceMedia
1 State St Plaza 25th Floor
New York, NY 10004
Tel: (212) 803-6589
Email: [EMAIL PROTECTED]
URL: www.sourcemedia.com

 
"This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution"

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to