[PR #759] [MERGED] Add HEAD support for storage API object endpoint #889

Closed
opened 2026-03-03 12:32:06 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fsouza/fake-gcs-server/pull/759
Author: @jossemarGT
Created: 4/25/2022
Status: Merged
Merged: 5/10/2022
Merged by: @fsouza

Base: mainHead: feat/add-options-support


📝 Commits (2)

  • 12f0ad7 Support HEAD method on storage API
  • ad5c1e5 Update documentation regarding flag usage

📊 Changes

4 files changed (+19 additions, -2 deletions)

View changed files

📝 README.md (+10 -0)
📝 fakestorage/object.go (+1 -1)
📝 fakestorage/server.go (+1 -1)
📝 fakestorage/server_test.go (+7 -0)

📄 Description

I think I found a easy way to fix #667.

I also took the liberty to update the documentation, spelling out the -help flag usage for new users. Fun story, when I started using this emulator, I jumped into the code to figure out if there was a way to support my use case; I went from the endpoints to the handler implementation. Lastly, I found out all that the flags definitions were sitting in config.go file, also that I could simply have used said flag all the time 😅.

Both changes are in separted commits in case we want to drop or modify any of them.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fsouza/fake-gcs-server/pull/759 **Author:** [@jossemarGT](https://github.com/jossemarGT) **Created:** 4/25/2022 **Status:** ✅ Merged **Merged:** 5/10/2022 **Merged by:** [@fsouza](https://github.com/fsouza) **Base:** `main` ← **Head:** `feat/add-options-support` --- ### 📝 Commits (2) - [`12f0ad7`](https://github.com/fsouza/fake-gcs-server/commit/12f0ad7c6f3e5223f29385986ab28466530022f4) Support HEAD method on storage API - [`ad5c1e5`](https://github.com/fsouza/fake-gcs-server/commit/ad5c1e5674c201f521b17ec981476ef3afc48751) Update documentation regarding flag usage ### 📊 Changes **4 files changed** (+19 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+10 -0) 📝 `fakestorage/object.go` (+1 -1) 📝 `fakestorage/server.go` (+1 -1) 📝 `fakestorage/server_test.go` (+7 -0) </details> ### 📄 Description I _think_ I found a easy way to fix #667. I also took the liberty to update the documentation, spelling out the `-help` flag usage for new users. Fun story, when I started using this emulator, I jumped into the code to figure out if there was a way to support my use case; I went from the endpoints to the handler implementation. Lastly, I found out all that the flags definitions were sitting in `config.go` file, also that I could simply have used said flag all the time :sweat_smile:. Both changes are in separted commits in case we want to drop or modify any of them. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 12:32:06 +03:00
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#889
No description provided.