1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-06-17 00:17:40 +02:00

add --proxy-host-header option

This commit is contained in:
Jehiah Czebotar
2015-03-17 15:15:15 -04:00
parent 24ef555547
commit 263e16eeea
7 changed files with 45 additions and 29 deletions

View File

@ -1,14 +1,14 @@
package main
import (
"net/url"
"strings"
"testing"
"net/url"
"github.com/bmizerany/assert"
)
func testOptions() (*Options) {
func testOptions() *Options {
o := NewOptions()
o.Upstreams = append(o.Upstreams, "http://127.0.0.1:8080/")
o.CookieSecret = "foobar"
@ -17,7 +17,7 @@ func testOptions() (*Options) {
return o
}
func errorMsg(msgs []string)(string) {
func errorMsg(msgs []string) string {
result := make([]string, 0)
result = append(result, "Invalid configuration:")
result = append(result, msgs...)