mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-27 06:35:54 +03:00
[PR #1252] [MERGED] Support trailing slash in /o and /b routes #1329
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#1329
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/1252
Author: @manuteleco
Created: 7/17/2023
Status: ✅ Merged
Merged: 7/30/2023
Merged by: @fsouza
Base:
main← Head:support_trailing_slash_in_o_route📝 Commits (1)
1a95981Support trailing slash in/oand/broutes📊 Changes
1 file changed (+5 additions, -0 deletions)
View changed files
📝
fakestorage/server.go(+5 -0)📄 Description
Support trailing slash in
/oand/broutesFor example, support this new route:
/upload/storage/v1/b/{bucketName}/o/on top of (and as alias to) the existing official route:
/upload/storage/v1/b/{bucketName}/oSome client libraries (like
googleCloudStorageR) rely on thesealternative route variants. Therefore, some operations like uploading
objects didn't work with
fake-gcs-server.Even though the Google Storage API reference documentation only
talks about the
/ovariant, it also works with/o/.The same applies to the other operations defined on
/oand/broutes (listing/creating objects/buckets).
Supporting
/o/and/b/here bringsfake-gcs-servercloser to theactual behavior of the API and adds compatibility with additional client
libraries.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.