Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 28, 2025

The comment at the return statement of _inject_toolbar incorrectly implied that empty content-encoding was only returned for gzip-decompressed responses. In reality, it's returned for all successful toolbar injections.

Changes

  • Updated comment in middleware.py:524-527: Clarified that empty content-encoding is returned for all successful toolbar injections, regardless of whether the input was originally compressed

The function always returns uncompressed UTF-8 with empty content-encoding after toolbar injection, whether or not the original response was gzip-compressed.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

The comment now accurately states that empty content-encoding is returned
for all successful toolbar injections, not just gzip-decompressed responses.
This addresses feedback that the original comment was misleading.

Co-authored-by: JacobCoffee <45884264+JacobCoffee@users.noreply.github.com>
Copilot AI changed the title [WIP] WIP address feedback on gzip-compressed responses Clarify content-encoding comment applies to all toolbar injections Dec 28, 2025
Copilot AI requested a review from JacobCoffee December 28, 2025 03:28
@JacobCoffee JacobCoffee marked this pull request as ready for review December 28, 2025 03:31
@JacobCoffee JacobCoffee merged commit f867495 into fix/gzip-compression-injection Dec 28, 2025
0 of 4 checks passed
@JacobCoffee JacobCoffee deleted the copilot/sub-pr-24-another-one branch December 28, 2025 03:31
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.

2 participants