Skip to content
This repository has been archived by the owner on Dec 8, 2017. It is now read-only.

Lowercase unexported function name #2

Merged
merged 1 commit into from Oct 13, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions delegate.go
Expand Up @@ -28,7 +28,7 @@ type authDelegateHandler struct {
func (handler authDelegateHandler) ServeHTTP(
rw http.ResponseWriter, req *http.Request) {
for _, upstream := range handler.upstreams {
if upstream.Accepts(req) {
if upstream.accepts(req) {
upstream.handler.ServeHTTP(rw, req)
return
}
Expand All @@ -42,7 +42,7 @@ type authDelegate struct {
handler http.Handler
}

func (delegate authDelegate) Accepts(req *http.Request) bool {
func (delegate authDelegate) accepts(req *http.Request) bool {
if delegate.headerName != "" {
return req.Header.Get(delegate.headerName) != ""
} else if delegate.cookieName != "" {
Expand Down