mirror of
https://github.com/distribution/distribution
synced 2025-02-23 06:49:36 +01:00

Go 1.4 is too old and should be dropped safely. Signed-off-by: bin liu <liubin0329@gmail.com>
10 lines
137 B
Go
10 lines
137 B
Go
package handlers
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func basicAuth(r *http.Request) (username, password string, ok bool) {
|
|
return r.BasicAuth()
|
|
}
|