From 5201f26ffc23c966e8aa36161002c6307dce54fe Mon Sep 17 00:00:00 2001 From: Tom Taylor Date: Mon, 19 Jan 2015 16:10:37 +0000 Subject: [PATCH] Run gofmt over source. --- oauthproxy.go | 4 ++-- options.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/oauthproxy.go b/oauthproxy.go index 9f64fc0..89a0244 100644 --- a/oauthproxy.go +++ b/oauthproxy.go @@ -10,9 +10,9 @@ import ( "net/http" "net/http/httputil" "net/url" + "regexp" "strings" "time" - "regexp" "github.com/bitly/go-simplejson" ) @@ -84,7 +84,7 @@ func NewOauthProxy(opts *Options, validator func(string) bool) *OauthProxy { serveMux: serveMux, redirectUrl: redirectUrl, skipAuthRegex: opts.SkipAuthRegex, - compiledRegex: opts.CompiledRegex, + compiledRegex: opts.CompiledRegex, PassBasicAuth: opts.PassBasicAuth, } } diff --git a/options.go b/options.go index 803ef30..9c9ef5f 100644 --- a/options.go +++ b/options.go @@ -4,8 +4,8 @@ import ( "errors" "fmt" "net/url" - "time" "regexp" + "time" ) // Configuration Options that can be set by Command Line Flag, or Config File @@ -27,8 +27,8 @@ type Options struct { SkipAuthRegex []string `flag:"skip-auth-regex" cfg:"skip_auth_regex"` // internal values that are set after config validation - redirectUrl *url.URL - proxyUrls []*url.URL + redirectUrl *url.URL + proxyUrls []*url.URL CompiledRegex []*regexp.Regexp }