mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-27 22:55:50 +03:00
[PR #694] [MERGED] Write to byte buffer first, then to response #833
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#833
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/694
Author: @m4gus88
Created: 2/24/2022
Status: ✅ Merged
Merged: 2/25/2022
Merged by: @fsouza
Base:
main← Head:batch-fix📝 Commits (3)
f121c6cWrite to byte buffer first, then to response0e0f687Fix golint202880cAnother lint fix📊 Changes
1 file changed (+13 additions, -2 deletions)
View changed files
📝
fakestorage/server.go(+13 -2)📄 Description
I've ran into an issue where parts of the request could not be read, because the response writer was already close, as we were already writing stuff into it before.
The solution is to write into a byte buffer instead, and write that out in the end into the response.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.