Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

#59 - permit escaped / characters in database name.

  • Loading branch information...
commit a52771e3fe8ffab12d67516828bb71063b6bc11a 1 parent 65536cd
@rnewson authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.