Removed JDK 1.6-ism.

This commit is contained in:
Simone Bordet 2012-01-09 21:51:15 +01:00
parent 27cbf0bf78
commit 829686f1e1
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,8 @@ public class HttpsProxyAuthenticationTest
@Override
protected boolean handleAuthentication(HttpServletRequest request, HttpServletResponse response, String address) throws ServletException, IOException
{
if (!request.getHeader("Authorization").isEmpty())
String authHeader = request.getHeader("Authorization");
if (authHeader != null && authHeader.length() > 0)
authHandlerSend = true;
return super.handleAuthentication(request,response,address);
}