Commit 76d9d695 authored by Matthew Holt's avatar Matthew Holt

Remove use of proxy_header in test

parent a4d70262
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) { ...@@ -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}"},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment