Skip to content

Fix: GzipDecoder - add support for responses with content-type 'application/a-gzip' (Apple Connect API)#892

Open
ikozhma wants to merge 1 commit intoairbytehq:mainfrom
ikozhma:patch-1
Open

Fix: GzipDecoder - add support for responses with content-type 'application/a-gzip' (Apple Connect API)#892
ikozhma wants to merge 1 commit intoairbytehq:mainfrom
ikozhma:patch-1

Conversation

@ikozhma
Copy link

@ikozhma ikozhma commented Feb 4, 2026

Related: airbytehq/airbyte/#66208

"application/a-gzip" content type is used in Apple Connect API. Apple Connect API docs
Without this fix GzipDecoder fails to decode responses with this content-type.

Summary by CodeRabbit

  • Bug Fixes
    • Improved handling of gzip-compressed responses by expanding support for additional compression content types, ensuring better compatibility with various data sources that use gzip encoding.

@github-actions github-actions bot added the community PRs from community contributors label Feb 4, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 4, 2026

📝 Walkthrough

Walkthrough

Added "application/a-gzip" to the set of recognized gzip Content-Encoding types in the gzip decoder factory, expanding the response content types that the declarative source parser can handle.

Changes

Cohort / File(s) Summary
Gzip Content-Type Expansion
airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py
Extended the _compressed_response_types set in create_gzip_decoder to recognize "application/a-gzip" in addition to existing gzip-based content types, broadening compatibility with gzip-encoded responses.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding support for 'application/a-gzip' content-type in GzipDecoder for Apple Connect API compatibility.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community PRs from community contributors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant