mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-26 06:05:54 +03:00
[PR #452] [MERGED] Add application/json content type where required #625
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#625
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/452
Author: @cgreening
Created: 3/15/2021
Status: ✅ Merged
Merged: 3/15/2021
Merged by: @fsouza
Base:
main← Head:content-type-fix📝 Commits (3)
fc24a12Add application/json content type where requiredf090629Move content-type closer to encode5873deaMove content header closer to encode📊 Changes
3 files changed (+23 additions, -1 deletions)
View changed files
📝
fakestorage/bucket.go(+3 -0)📝
fakestorage/object.go(+9 -0)📝
fakestorage/upload.go(+11 -1)📄 Description
This seems to be a bit horrible as I've had to add the header everywhere JSON is returned. I don't know if there's a better way to do this.
Fixes: https://github.com/fsouza/fake-gcs-server/issues/451
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.