distribution/registry/handlers/basicauth.go

10 lines
137 B
Go

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