Automattic / Automattic/knox

Automatically ungzip Transfer-Encoding: gzip files.

Open
#232 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.7k
Forks
283
PR merge metrics
No merged PRs in 30d

Description

If we upload a file to S3 using gzip compression and zlib, then try to use `getFile` with it, we have to then pipe it through gunzip per #226.

Do you think it'd be appropriate to add a new method such as `client.getGunzippedFile` which would return the gunzipped file?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the existing getFile behavior and the discussion in #226, then determine where gzip-encoded S3 responses are handled. The change is done when a clearly defined getGunzippedFile-style entry point returns the decompressed file and its behavior is covered by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.