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
|
package proxy
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/mholt/caddy/caddyfile"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/mholt/caddy/caddyfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewHost(t *testing.T) {
|
func TestNewHost(t *testing.T) {
|
||||||
|
@ -197,7 +198,7 @@ func TestParseBlock(t *testing.T) {
|
||||||
{"proxy / localhost:8080 {\n transparent \n}"},
|
{"proxy / localhost:8080 {\n transparent \n}"},
|
||||||
|
|
||||||
// Test #2: transparent preset with another param
|
// 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
|
// Test #3: transparent preset on multiple sites
|
||||||
{"proxy / localhost:8080 {\n transparent \n} \nproxy /api localhost:8081 { \ntransparent \n}"},
|
{"proxy / localhost:8080 {\n transparent \n} \nproxy /api localhost:8081 { \ntransparent \n}"},
|
||||||
|
|
Loading…
Reference in a new issue