Removed the need to register application servlets for the internal web server
with both appname+"/" and appname+"/*", because Acme Serve now appends dual dummy slashes to the URI path if the servlet for a request isn't found.
This commit is contained in:
parent
b68fb4764c
commit
c503592c49
2 changed files with 5 additions and 2 deletions
|
@ -658,6 +658,9 @@ class ServeConnection implements Runnable, HttpServletRequest, HttpServletRespon
|
|||
if (reqQuery != null)
|
||||
reqQuery = decode (reqQuery);
|
||||
Servlet servlet = (Servlet) serve.registry.get( reqUriPath );
|
||||
// maybe the application name without slash? try with slash appended
|
||||
if (servlet == null)
|
||||
servlet = (Servlet) serve.registry.get (reqUriPath+"//");
|
||||
if (servlet == null)
|
||||
servlet = serve.defaultServlet;
|
||||
if ( servlet != null )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue