diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2016-09-21 09:53:14 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2016-09-22 09:46:26 +0200 |
commit | b3b728d52c5ec7c673554dd8ec371229aa19a4ec (patch) | |
tree | a1f46032fa7046d0648cfc48cd1c4e9bd334a7d2 /org.eclipse.jgit.http.server | |
parent | 01935f8f50699db09e9e6f4e725913b907d7cbd5 (diff) | |
download | jgit-b3b728d52c5ec7c673554dd8ec371229aa19a4ec.tar.gz jgit-b3b728d52c5ec7c673554dd8ec371229aa19a4ec.zip |
WrappedRequest: Don't use deprecated ServletRequestWrapper#realPath
Change-Id: I268e66d2299a1a12f7ae44b67a6b947339038245
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.http.server')
-rw-r--r-- | org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/WrappedRequest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/WrappedRequest.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/WrappedRequest.java index 7f8da7c440..b702c07486 100644 --- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/glue/WrappedRequest.java +++ b/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 |