Skip to content

Commit

Permalink
Update ProxyHandler.java
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshvaryani authored Jul 25, 2024
1 parent e708437 commit ee46184
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@ protected String rewriteTarget(HttpServletRequest request) {
* @param proxyRequest
*/
public void preConnectionHook(HttpServletRequest request, Request proxyRequest) {
// you may override it.

// [sev-16337] with a 10% probably, log the request headers for debugging
if (Math.random() < 0.10) {
log.debug("(preConnectionHook) Request URL: {} , request URI {} , servlet path {} ,"
+ "toString {}, getContentLength {}, getRequestHeaderSize {}, requestHeaders {}",
request.getRequestURL(), request.getRequestURI(), request.getServletPath(),
request.toString(), request.getContentLength(), getRequestHeaderSize(request),
logRequestHeaders(request));
}
}

/**
Expand Down

0 comments on commit ee46184

Please sign in to comment.