handle empty prefix as if it's missing

pull/53/head
Ka-Hing Cheung 2015-04-27 17:38:01 -07:00
rodzic 44d68dd051
commit 8fa555d093
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -791,7 +791,7 @@ final class S3ProxyHandler extends AbstractHandler {
options = options.recursive();
}
String prefix = request.getParameter("prefix");
if (prefix != null) {
if (prefix != null && !prefix.isEmpty()) {
options = options.inDirectory(prefix);
}
String marker = request.getParameter("marker");