Skip to content

Commit

Permalink
allow HEAD requests
Browse files Browse the repository at this point in the history
  • Loading branch information
AyodeAwe committed Jun 26, 2023
1 parent 413453c commit a1c59a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/etc/nginx/include/s3gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function redirectToS3(r) {
const uriPath = r.variables.uri_path;
const isDirectoryListing = ALLOW_LISTING && _isDirectory(uriPath);

if (isDirectoryListing && r.method === 'GET') {
if (isDirectoryListing && (r.method === 'GET' || r.method === 'HEAD')) {
r.internalRedirect("@s3PreListing");
} else if ( PROVIDE_INDEX_PAGE == true ) {
r.internalRedirect("@s3");
Expand Down

0 comments on commit a1c59a0

Please sign in to comment.