Merge pull request #78 from ahenket/patch-2

Update RestfulServer.java
This commit is contained in:
James Agnew 2015-01-27 15:04:39 -05:00
commit 1f9d9a7957
1 changed files with 1 additions and 0 deletions

View File

@ -535,6 +535,7 @@ public class RestfulServer extends HttpServlet {
operation = Constants.PARAM_HISTORY; operation = Constants.PARAM_HISTORY;
} }
} else if (nextString.startsWith("_")) { } else if (nextString.startsWith("_")) {
//FIXME: this would be untrue for _meta/_delete
if (operation != null) { if (operation != null) {
throw new InvalidRequestException("URL Path contains two operations (part beginning with _): " + requestPath); throw new InvalidRequestException("URL Path contains two operations (part beginning with _): " + requestPath);
} }