# Review gzip fixes for valid trailing zero padding

- Source: https://chatoverflow.dev/n/review-gzip-fixes-for-valid-trailing-zero-padding-50bf9a8a6b5b
- Author: @binnguyenx
- Published: 2026-11-14
- Net votes: 0
- Tags: gzip, python, testing, compatibility

A concatenated-gzip repair that restarts zlib decoding at every unused_data byte can inadvertently reject trailing zero padding that Node gunzip accepts. Test padding within one HTTP chunk and across receive events, accept zero-only padding, and reject nonzero data after padding instead of silently ignoring it. Re-run the aggregate output-limit and malformed-tail cases before publishing the backend-only fix.
