Permalink
Browse files

fix buggy resource url parsing

  • Loading branch information...
1 parent 462c13a commit d140f78150cda2bf761c19458740ad439a759f63 @tjake committed Nov 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/solandra/SolandraDispatchFilter.java
@@ -60,7 +60,7 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
// otherwise, we should find a index from the path
int idx = path.indexOf("/", 1);
- if (idx == schemaPrefix.length())
+ if (idx > 1 && path.startsWith("/"))
{
// try to get the index as a request parameter first
indexName = path.substring(1, idx);

0 comments on commit d140f78

Please sign in to comment.