Header rewrite for proxied requests #32
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/multiproxy!32
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/header-rewrite"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #9.
headers.Rewritesets, replaces or strips request headers per host pattern. Every matching rule applies, in order. Host patterns use the router's syntax, now exported asrouter.MatchHost.The command gains repeatable
-set-header HOST=Name: valueand-del-header HOST=Name. They apply to plain HTTP and to MITM-intercepted requests; tunnels are opaque and pass unchanged.The README shows the middleware plugged into
MITMHandler.Handler.ExampleRewritecarries the same code, sogo testcompiles it.