Skip to content

fix(Crowdin): Handle gzip CDN responses in fetchUrl#226

Merged
ReenigneArcher merged 1 commit intomasterfrom
fix/crowdin/handle-gzip
Mar 14, 2026
Merged

fix(Crowdin): Handle gzip CDN responses in fetchUrl#226
ReenigneArcher merged 1 commit intomasterfrom
fix/crowdin/handle-gzip

Conversation

@ReenigneArcher
Copy link
Member

Description

Add transparent gzip decompression and improved response handling for CDN fetches. Introduces collectBody to aggregate response chunks, promisified zlib.gunzip (gunzip) and uses it to decompress responses with Content-Encoding: gzip. Also tightens redirect and HTTP error handling so callers always receive plain bytes.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@codecov
Copy link

codecov bot commented Mar 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (7b3f83e) to head (203f7ac).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #226   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          104       104           
  Branches        30        30           
=========================================
  Hits           104       104           

@codecov
Copy link

codecov bot commented Mar 14, 2026

Bundle Report

Bundle size has no change ✅

Add transparent gzip decompression and improved response handling for CDN fetches. Introduces collectBody to aggregate response chunks, promisified zlib.gunzip (gunzip) and uses it to decompress responses with Content-Encoding: gzip. Also tightens redirect and HTTP error handling so callers always receive plain bytes.
@ReenigneArcher ReenigneArcher force-pushed the fix/crowdin/handle-gzip branch from 4522f2e to 203f7ac Compare March 14, 2026 12:52
@sonarqubecloud
Copy link

@ReenigneArcher ReenigneArcher merged commit f4e8a87 into master Mar 14, 2026
16 checks passed
@ReenigneArcher ReenigneArcher deleted the fix/crowdin/handle-gzip branch March 14, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant