[GH-ISSUE #1278] HEAD request returns HTTP 404 #182

Closed
opened 2026-03-03 12:08:59 +03:00 by kerem · 2 comments
Owner

Originally created by @BlackBeardBana on GitHub (Aug 4, 2023).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1278

When attempting a HEAD request for an object within a bucket, the response code returned is a 404.
When attempting a GET request for the same endpoint, a successful HTTP 200 response is returned.

Example endpoint:

Originally created by @BlackBeardBana on GitHub (Aug 4, 2023). Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1278 When attempting a HEAD request for an object within a bucket, the response code returned is a 404. When attempting a GET request for the same endpoint, a successful HTTP 200 response is returned. Example endpoint: - http://localhost:4443/download/storage/v1/b/image-bucket/o/folder/image.jpg
kerem 2026-03-03 12:08:59 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@fsouza commented on GitHub (Aug 4, 2023):

Oh yeah, the /download endpoint is missing the HEAD verb in its mapping. I opened PR #1279, can you give it a shot?

<!-- gh-comment-id:1665484831 --> @fsouza commented on GitHub (Aug 4, 2023): Oh yeah, the /download endpoint is missing the HEAD verb in its mapping. I opened PR #1279, can you give it a shot?
Author
Owner

@BlackBeardBana commented on GitHub (Aug 4, 2023):

Given it a shot locally in a Docker setup and works as intended 👍

<!-- gh-comment-id:1665619811 --> @BlackBeardBana commented on GitHub (Aug 4, 2023): Given it a shot locally in a Docker setup and works as intended 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#182
No description provided.