Skip to content

Instantly share code, notes, and snippets.

@gissuebot
Created July 7, 2014 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gissuebot/c16ef6f94f118d54f031 to your computer and use it in GitHub Desktop.
Save gissuebot/c16ef6f94f118d54f031 to your computer and use it in GitHub Desktop.
Migrated attachment for Guice issue 418, comment 2
diff -urb --exclude=.svn /home/java/src/guice-2.0-src/servlet/src/com/google/inject/servlet/FilterDefinition.java src/main/java/com/google/inject/servlet/FilterDefinition.java
--- /home/java/src/guice-2.0-src/servlet/src/com/google/inject/servlet/FilterDefinition.java 2009-05-19 17:58:14.000000000 -0700
+++ src/main/java/com/google/inject/servlet/FilterDefinition.java 2009-08-20 16:33:29.000000000 -0700
@@ -123,7 +123,7 @@
ServletResponse servletResponse, FilterChainInvocation filterChainInvocation)
throws IOException, ServletException {
- final String path = ((HttpServletRequest) servletRequest).getServletPath();
+ final String path = ((HttpServletRequest) servletRequest).getRequestURI();
if (shouldFilter(path)) {
filter.get()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment