Skip to content

Instantly share code, notes, and snippets.

@nkallen
Created March 5, 2009 22:06
Show Gist options
  • Save nkallen/74592 to your computer and use it in GitHub Desktop.
Save nkallen/74592 to your computer and use it in GitHub Desktop.
class RequestWrapper(request: HttpServletRequest) extends javax.servlet.http.HttpServletRequestWrapper(request) {
override def getHeaders(name: String): java.util.Enumeration[_] = {
if (!ForwardRequest.hopByHopHeaders.contains(name))
super.getHeaders(name)
else
java.util.Collections.enumeration(new ArrayList)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment