From 22a67df6c0a0ef0d3639d6d3bbcf85a34d22bd80 Mon Sep 17 00:00:00 2001 From: Ohad Basan Date: Wed, 10 Jan 2018 18:48:44 +0200 Subject: [PATCH] fix wrong param in docs --- docs/Request-rewriting.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/Request-rewriting.md b/docs/Request-rewriting.md index 825610b..fb378b7 100644 --- a/docs/Request-rewriting.md +++ b/docs/Request-rewriting.md @@ -23,16 +23,16 @@ Set request header, if header already exists it will be overwritten. May be usef ``` gor --input-raw :80 --output-http "http://staging.server" \ - --http-header "User-Agent: Replayed by Gor" \ - --http-header "Enable-Feature-X: true" + --http-set-header "User-Agent: Replayed by Gor" \ + --http-set-header "Enable-Feature-X: true" ``` #### Host header -Host header gets special treatment. By default Host get set to the value specified in --output-http. If you manually set --http-header "Host: anonther.com", Gor will not override Host value. +Host header gets special treatment. By default Host get set to the value specified in --output-http. If you manually set --http-set-header "Host: anonther.com", Gor will not override Host value. If you app accepts traffic from multiple domains, and you want to keep original headers, there is specific `--http-original-host` with tells Gor do not touch Host header at all. *** -You may also read about [[Request filtering]], [[Rate limiting]] and [[Middleware]] \ No newline at end of file +You may also read about [[Request filtering]], [[Rate limiting]] and [[Middleware]]