Skip to content

Commit

Permalink
added extra proxy debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Sep 4, 2013
1 parent 6b143f6 commit dc53da2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hawtio-web/src/main/java/io/hawt/web/ProxyDetails.java
Expand Up @@ -49,7 +49,10 @@ public class ProxyDetails {
private String host;
private int port = 80;

private static Set<String> ignoreHeaderNames = new HashSet<String>(Arrays.asList("_user", "_pwd", "_url", "url"));
public static final String USER_PARAM = "_user";
public static final String PWD_PARAM = "_pwd";

private static Set<String> ignoreHeaderNames = new HashSet<String>(Arrays.asList(USER_PARAM, PWD_PARAM, "_url", "url"));

public ProxyDetails(HttpServletRequest httpServletRequest) {
this(httpServletRequest.getPathInfo());
Expand Down Expand Up @@ -138,6 +141,7 @@ public ProxyDetails(String pathInfo) {
stringProxyURL += "?" + URIUtil.encodeQuery(httpServletRequest.getQueryString());
}
*/
LOG.info("Proxying to " + stringProxyURL + " as user: " + userName);
if (LOG.isDebugEnabled()) {
LOG.debug("Proxying to " + stringProxyURL);
}
Expand Down

0 comments on commit dc53da2

Please sign in to comment.