distribution/registry/handlers/basicauth.go

13 lines
171 B
Go
Raw Permalink Normal View History

//go:build go1.4
// +build go1.4
package handlers
import (
"net/http"
)
func basicAuth(r *http.Request) (username, password string, ok bool) {
return r.BasicAuth()
}