mirror of
https://github.com/caddyserver/caddy.git
synced 2025-03-05 07:27:40 +08:00
Remove use of proxy_header in test
This commit is contained in:
parent
a4d70262aa
commit
76d9d695be
@ -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…
x
Reference in New Issue
Block a user