Do not try to perform path translation relative to the servlet mountpoint
since this is done already by the servlet container.
This commit is contained in:
		
							parent
							
								
									251b9e0fa3
								
							
						
					
					
						commit
						921e4787cb
					
				
					 1 changed files with 3 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -57,11 +57,9 @@ public final class EmbeddedServletClient extends AbstractServletClient {
 | 
			
		|||
    String getRequestPath (String path) {
 | 
			
		||||
	if (path == null)
 | 
			
		||||
	    return "";
 | 
			
		||||
	int pathMatch = path.indexOf (mountpoint);
 | 
			
		||||
	if (pathMatch > -1)
 | 
			
		||||
	    return trim (path.substring (pathMatch+mountpoint.length()));
 | 
			
		||||
	else
 | 
			
		||||
	    return trim (path);
 | 
			
		||||
	// We already get the correct request path
 | 
			
		||||
	// from the servlet container.
 | 
			
		||||
	return trim (path);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    String trim (String str) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue