Redirect check is incorrect in redirectConfigured method for 303 response
Brought to you by:
russgold
set the auto redirect option using com.meterware.httpunit.ClientProperties.setAutoRedirect(true);
invoke a servlet which returns a 303 redirect response to another location.
Actual:
the request will be not be redirected to received "location", because the condition in com.meterware.httpunit.WebWindow.redirectConfigured(WebResponse) will always evaluate to false.
boolean result = isAutoredirect
&& responseCode >= HttpURLConnection.HTTP_MOVED_PERM
&& responseCode <= HttpURLConnection.HTTP_MOVED_TEMP
&& hasLocation;
The HTTP_MOVED_PREM is 301 and HTTP_MOVED_TEMP is 302 - so the 303 response will never will be redirected.