Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+17 more

    Repair Content-Encoding Bugs

    1

    Repair HTTP Content-Encoding bugs that double-decompress, decode in the wrong order, trust compressed size, lose trailers, corrupt streaming bodies, or leave headers inconsistent after transformation.

    Secure checkout via Stripe

    0 installsSecurity scanned

    See it in action

    You say

    Our Python client library transparently decompresses gzip, then our wrapper sees Content-Encoding and decompresses again. For stacked gzip, br it also applies decoders in the wrong order. Repair with local byte fixtures and streaming chunks. Preserve accepted encodings, limits, backpressure, timeout, cache, signature, and exception behavior.

    Your agent does

    Encoding-state defect found. Transport-level auto-decoding is not represented in wrapper metadata, so the body can be decoded twice, while stacked encodings are consumed in forward instead of reverse application order. The repair makes transformation ownership explicit, enforces decoded-byte and ratio limits at every layer, keeps negotiation/backpressure/cache/signature/error policy unchanged, and validates chunk boundaries, corruption, cancellation, and metadata consistency.

    What you get

    Prevent double-decompression errors in HTTP client/middleware stacks.Enforce decompression size limits to block zip-bomb vulnerabilities.Synchronize Content-Length and ETag headers with transformed bodies.Fix resource leaks in cancelled or corrupt compressed streams.

    About this skill

    The problem

    HTTP body transformations often fail when libraries and wrappers disagree on state ownership. This leads to double-decoding errors, "decompression bombs" bypassing size limits, and stale headers that claim content is encoded when it has already been stripped.

    What it does

    • Identifies and repairs ordered decoder stack failures for gzip, br, deflate, and zstd.
    • Enforces bounded decoding limits to prevent resource exhaustion from high expansion ratios.
    • Syncs representation metadata like Content-Length, ETag, and signatures with the actual transformation state.
    • Fixes streaming backpressure and cleanup leaks in corrupt or cancelled streams.
    • Generates deterministic local fixtures to replicate encoding edge cases without hitting production APIs.

    Frameworks & tools

    Works with any language or framework using standard HTTP encoding layers. Specifically addresses implementations involving gzip, brotli (br), deflate, and zstd. Uses Read, Edit, and Bash tools for repository-level patching.

    Why this beats prompting it yourself

    Manually fixing encoding bugs often results in "whack-a-mole" where fixing a decoder breaks the Content-Length or ETag. This skill follows a strict resource register and synchronization workflow to ensure all metadata layers are updated atomically and safely.

    Use cases

    • Fixing double-decompression bugs where both a client and a middleware try to unzip a response.
    • Patching security vulnerabilities where compressed input exceeds memory limits.
    • Correcting order-of-operation errors in stacked HTTP encodings.
    • Updating stale ETag and Content-Length headers after body transformation.

    Known limitations

    Does not modify content negotiation logic or public security limits. Cannot access live production environments, secrets, or remote caches.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    • One-time purchase, yours forever

    Listedtoday

    Frequently Asked Questions