Skip to content

Stop http-debug from inventing Accept-Encoding gzip - #6449

Open
aamoghS wants to merge 1 commit into
grafana:masterfrom
aamoghS:fix-http-debug-accept-encoding
Open

aamoghS wants to merge 1 commit into
grafana:masterfrom
aamoghS:fix-http-debug-accept-encoding

Conversation

@aamoghS

@aamoghS aamoghS commented Sep 19, 2026

Copy link
Copy Markdown

Summary

Stop --http-debug from inventing Accept-Encoding: gzip.

DumpRequestOut adds gzip to match net/http.Transport defaults, but k6 disables compression. Dump the request as it is sent instead.

Fixes #1042

Test plan

  • go test ./lib/netext/httpext/ -count=1 -run HTTPDebug
  • k6 run --http-debug script.js request dump has no invented gzip Accept-Encoding

DumpRequestOut adds gzip to match net/http.Transport defaults, but k6
disables compression. Dump the request as it is sent instead.

Fixes grafana#1042
@aamoghS
aamoghS requested a review from a team as a code owner September 19, 2026 14:18
@aamoghS
aamoghS requested review from AgnesToulet and janHildebrandt98 and removed request for a team September 19, 2026 14:18
@github-actions

Copy link
Copy Markdown

Signed commits report

1 of 1 commit between master and fix-http-debug-accept-encoding could not be fully verified:

Commit Author Reason Message
7a4517ae aamoghS unsigned fix: stop http-debug from inventing Accept-Encoding gzip

This repository requires all commits to be signed. See GitHub docs on commit signature verification.

This branch has not been deployed

No deployments
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.

--http-debug shows incorrect "Accept-Encoding"

1 participant