1
0
Fork 0

fix failing test

This commit is contained in:
jsteemann 2018-11-14 11:58:38 +01:00
parent 39bdebf851
commit d9f0dcc82b
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ void RestActionHandler::executeAction() {
if (type == rest::RequestType::GET) {
std::vector<std::string> const& suffixes = _request->decodedSuffixes();
if (suffixes.empty() ||
(suffixes.size() == 2 && suffixes[0] == "/_admin" && suffixes[1] == "html")) {
(suffixes.size() == 2 && suffixes[0] == "_admin" && suffixes[1] == "html")) {
// request to just /
_response->setResponseCode(rest::ResponseCode::MOVED_PERMANENTLY);
_response->setHeaderNC(StaticStrings::Location, "/_db/" + StringUtils::encodeURIComponent(_vocbase.name()) + "/_admin/aardvark/index.html");