Merged branch 'jetty-9.2.x' into 'master'.

This commit is contained in:
Simone Bordet 2015-02-12 23:11:05 +01:00
commit 1f90d62d3f
2 changed files with 3 additions and 3 deletions

View File

@ -523,7 +523,7 @@ public abstract class AbstractProxyServlet extends HttpServlet
if (HOP_HEADERS.contains(lowerHeaderName))
continue;
String newHeaderValue = filterServerResponseHeader(clientRequest, headerName, field.getValue());
String newHeaderValue = filterServerResponseHeader(clientRequest, serverResponse, headerName, field.getValue());
if (newHeaderValue == null || newHeaderValue.trim().length() == 0)
continue;
@ -559,7 +559,7 @@ public abstract class AbstractProxyServlet extends HttpServlet
}
}
protected String filterServerResponseHeader(HttpServletRequest clientRequest, String headerName, String headerValue)
protected String filterServerResponseHeader(HttpServletRequest clientRequest, Response serverResponse, String headerName, String headerValue)
{
return headerValue;
}

View File

@ -145,7 +145,7 @@ public class ProxyServlet extends AbstractProxyServlet
// TODO: remove in Jetty 9.3, only here for backward compatibility.
@Override
protected String filterServerResponseHeader(HttpServletRequest clientRequest, String headerName, String headerValue)
protected String filterServerResponseHeader(HttpServletRequest clientRequest, Response serverResponse, String headerName, String headerValue)
{
return filterResponseHeader(clientRequest, headerName, headerValue);
}