Shopify / Shopify/toxiproxy

Proxy does not foward custom HTTP headers

Open
#550 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
12.4k
Forks
510
PR merge metrics
No merged PRs in 30d

Description

Hello.
We are using ToxiProxy for negative testing our application.
One of our endpoints returns a file stream over http and puts 2 information in headers:
"Content-Length" : this is a commonly used http header
"File-Checksum" : this is our own application specific header

When requesting a file throw ToxiProxy, the "File-Checksum" header is missing and we can see these two headers:
"Content-Length"
"Date"

Question: is this an expected behaviour of ToxiProxy? If yes, could it be useful to keep the headers as is without changes?

Thank you for advice

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the file-stream request through ToxiProxy and inspect how response headers are handled. Confirm whether the custom File-Checksum header is dropped, then verify that the header is preserved while existing headers such as Content-Length and Date remain correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.