Skip to content

Commit bdbc766

Browse files
committed
autoformat
1 parent 33be076 commit bdbc766

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

auth/common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func matchHiddenDomain(host, hidden_domain string) bool {
2323
func requireBasicAuth(ctx context.Context, wr http.ResponseWriter, req *http.Request, hidden_domain string, next Auth) (string, bool) {
2424
if hidden_domain != "" {
2525
if matchHiddenDomain(req.URL.Host, hidden_domain) ||
26-
matchHiddenDomain(req.Host, hidden_domain) {
26+
matchHiddenDomain(req.Host, hidden_domain) {
2727
wr.Header().Set("Proxy-Authenticate", BASIC_REALM_MSG)
2828
http.Error(wr, AUTH_REQUIRED_MSG, http.StatusProxyAuthRequired)
2929
return "", false
@@ -40,7 +40,7 @@ func requireBasicAuth(ctx context.Context, wr http.ResponseWriter, req *http.Req
4040
if next != nil {
4141
return next.Validate(ctx, wr, req)
4242
}
43-
43+
4444
wr.Header().Set("Proxy-Authenticate", BASIC_REALM_MSG)
4545
http.Error(wr, AUTH_REQUIRED_MSG, http.StatusProxyAuthRequired)
4646
return "", false

auth/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ const AUTH_REQUIRED_MSG = "Proxy authentication required.\n"
44
const BAD_REQ_MSG = "Bad Request\n"
55
const AUTH_TRIGGERED_MSG = "Browser auth triggered!\n"
66
const EPOCH_EXPIRE = "Thu, 01 Jan 1970 00:00:01 GMT"
7-
const BASIC_REALM_MSG = `Basic realm="dumbproxy"`
7+
const BASIC_REALM_MSG = `Basic realm="dumbproxy"`

0 commit comments

Comments
 (0)