Patrick,
 
Thanks for your contribution. However, the mailing list doesn't like
attachments. Please can you open a Bugzilla item for this and attach your patch
to that?
 
Thanks,
 
Mark


  _____  

From: May, Patrick [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 12, 2005 7:55 PM
To: 'tomcat-dev@jakarta.apache.org'
Subject: [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"

Reply via email to