Browse Source

WrappedRequest: Don't use deprecated ServletRequestWrapper#realPath

Change-Id: I268e66d2299a1a12f7ae44b67a6b947339038245
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
stable-4.6
David Pursehouse 8 years ago committed by Matthias Sohn
parent
commit
b3b728d52c
  1. 2
      org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/WrappedRequest.java

2
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/WrappedRequest.java

@ -72,7 +72,7 @@ public class WrappedRequest extends HttpServletRequestWrapper {
@Override
public String getPathTranslated() {
final String p = getPathInfo();
return p != null ? getRealPath(p) : null;
return p != null ? getSession().getServletContext().getRealPath(p) : null;
}
@Override

Loading…
Cancel
Save