net/http implements transparent header canonicalization when reading to / writing from the headers object. Meaning if a server sends x-some-header, martian (and net/http) will transparently change that to X-Some-Header.
This breaks clients which are not RFC compliant and introduces traffic mutation for what should be a transparent intercepting proxy.
net/http implements transparent header canonicalization when reading to / writing from the
headers
object. Meaning if a server sendsx-some-header
, martian (and net/http) will transparently change that toX-Some-Header
.This breaks clients which are not RFC compliant and introduces traffic mutation for what should be a transparent intercepting proxy.