0
Fork 0
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:
Matthew Holt 2016-09-24 12:27:16 -06:00
parent a4d70262aa
commit 76d9d695be
No known key found for this signature in database
GPG key ID: 0D97CC73664F4D03

View file

@ -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}"},