commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Lubke <Ryan.Lu...@Sun.COM>
Subject [HttpClient][PATCH] Correction to Location header check logic
Date Wed, 28 Aug 2002 14:53:36 GMT
The current logic is causing several tests to fail when run against 
Tomcat:

------------------------------------------------------------
//get the location header to find out where to redirect to
Header locationHeader = getResponseHeader("location");
 if (locationHeader != null) {
   // got a redirect response, but no location header
   log.error("Received redirect response " + statusCode + " but no
location header");
   return statusCode;
}
-------------------------------------------------------------
The check should not be '!=' but '=='.

The attached patch corrects the issue and includes the fix
for the NPE issue I reported previously.




Mime
View raw message