Skip to content
Browse files

#59 - permit escaped / characters in database name.

  • Loading branch information...
1 parent 65536cd commit a52771e3fe8ffab12d67516828bb71063b6bc11a Robert Newson committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/github/rnewson/couchdb/lucene/LuceneServlet.java
View
4 src/main/java/com/github/rnewson/couchdb/lucene/LuceneServlet.java
@@ -158,7 +158,7 @@ private void handleWelcomeReq(final HttpServletRequest req,
protected void doGet(final HttpServletRequest req,
final HttpServletResponse resp) throws ServletException,
IOException {
- switch (StringUtils.countMatches(req.getPathInfo(), "/")) {
+ switch (StringUtils.countMatches(req.getRequestURI(), "/")) {
case 1:
handleWelcomeReq(req, resp);
return;
@@ -179,7 +179,7 @@ protected void doGet(final HttpServletRequest req,
protected void doPost(final HttpServletRequest req,
final HttpServletResponse resp) throws ServletException,
IOException {
- switch (StringUtils.countMatches(req.getPathInfo(), "/")) {
+ switch (StringUtils.countMatches(req.getRequestURI(), "/")) {
case 3:
if (req.getPathInfo().endsWith("/_cleanup")) {
cleanup(req, resp);

0 comments on commit a52771e

Please sign in to comment.
Something went wrong with that request. Please try again.