mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
Remove use of proxy_header in test
This commit is contained in:
parent
a4d70262aa
commit
76d9d695be
1 changed files with 3 additions and 2 deletions
|
@ -1,11 +1,12 @@
|
|||
package proxy
|
||||
|
||||
import (
|
||||
"github.com/mholt/caddy/caddyfile"
|
||||
"net/http"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/mholt/caddy/caddyfile"
|
||||
)
|
||||
|
||||
func TestNewHost(t *testing.T) {
|
||||
|
@ -197,7 +198,7 @@ func TestParseBlock(t *testing.T) {
|
|||
{"proxy / localhost:8080 {\n transparent \n}"},
|
||||
|
||||
// Test #2: transparent preset with another param
|
||||
{"proxy / localhost:8080 {\n transparent \nproxy_header X-Test Tester \n}"},
|
||||
{"proxy / localhost:8080 {\n transparent \nheader_upstream X-Test Tester \n}"},
|
||||
|
||||
// Test #3: transparent preset on multiple sites
|
||||
{"proxy / localhost:8080 {\n transparent \n} \nproxy /api localhost:8081 { \ntransparent \n}"},
|
||||
|
|
Loading…
Reference in a new issue