mirror of https://github.com/apache/lucene.git
SOLR-203 -- but that normalizes '/' to '' and then matches the default handler
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@535580 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d75a031c5e
commit
0b34c977f8
|
@ -60,7 +60,7 @@ final class RequestHandlers {
|
|||
*/
|
||||
private static String normalize( String p )
|
||||
{
|
||||
if( p != null && p.endsWith( "/" ) )
|
||||
if( p != null && p.endsWith( "/" ) && p.length() > 1 )
|
||||
return p.substring( 0, p.length()-1 );
|
||||
|
||||
return p;
|
||||
|
|
Loading…
Reference in New Issue