summaryrefslogtreecommitdiffstats
path: root/sandbox/sebastien
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-07-19 06:11:37 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-07-19 06:11:37 +0000
commitaffdb7768d1142b08d34177f167894a826563f60 (patch)
tree265b438590b2973f6a237b03a05477c49b8517ba /sandbox/sebastien
parent839dfbba95996c0921846fed109046c8b90d679d (diff)
Fix logic to compute the path info as it doesn't work in a webapp.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@965358 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/sebastien')
-rw-r--r--sandbox/sebastien/java/dynamic/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/sebastien/java/dynamic/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java b/sandbox/sebastien/java/dynamic/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java
index 0fe13337ef..0b49ed09e5 100644
--- a/sandbox/sebastien/java/dynamic/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java
+++ b/sandbox/sebastien/java/dynamic/modules/binding-http-runtime/src/main/java/org/apache/tuscany/sca/binding/http/provider/HTTPBindingListenerServlet.java
@@ -75,7 +75,7 @@ public class HTTPBindingListenerServlet extends HttpServlet {
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// Get the request path
- String path = URLDecoder.decode(request.getRequestURI().substring(request.getServletPath().length()), "UTF-8");
+ String path = URLDecoder.decode(request.getPathInfo(), "UTF-8");
if (path.length() ==0) {
// Redirect to a URL ending with / to make relative hrefs work
// relative to the served resource.