Handle trailing slash during HEAD bucket

Found with Ceph s3-tests.  References #5.
pull/16/head
Andrew Gaul 2014-08-01 15:26:13 -07:00
rodzic 94f8582a67
commit 49489430d5
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -156,7 +156,7 @@ final class S3ProxyHandler extends AbstractHandler {
}
case "HEAD":
if (path.length <= 2 || path[2].isEmpty()) {
handleContainerExists(response, uri.substring(1));
handleContainerExists(response, path[1]);
baseRequest.setHandled(true);
return;
} else {