mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 07:55:51 +03:00
[PR #146] [MERGED] Gzip data for upload #392
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#392
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/asciinema/asciinema/pull/146
Author: @bentranter
Created: 2/12/2016
Status: ✅ Merged
Merged: 2/13/2016
Merged by: @ku1ik
Base:
master← Head:gzip-data-for-upload📝 Commits (1)
f54b0a9Gzip data for upload📊 Changes
1 file changed (+9 additions, -2 deletions)
View changed files
📝
api/api.go(+9 -2)📄 Description
Relevant issue: asciinema/discussions#12
This tiny PR gzips the body of the POST request before uploading it, and adds the appropriate
Accept-Encodingheader to the request. As far as I can tell, no change needs to be made on the Rails end, sinceNet::HTTPknows to automatically decompress gzipped requests if they contain theAccept-Encoding: gzipheader.I tested this by compiling locally and uploading an asciicast and it seemed to work, but if there's more I should do to ensure this is okay, let me know.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.