mirror of
https://github.com/distribution/distribution
synced 2024-11-12 05:45:51 +01:00
0f08b6961a
The goal is to free up the distribution/registry package to include common registry types. This moves the webapp definitions out of the way to allow for this change in the future. Signed-off-by: Stephen J Day <stephen.day@docker.com>
12 lines
154 B
Go
12 lines
154 B
Go
// +build go1.4
|
|
|
|
package handlers
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func basicAuth(r *http.Request) (username, password string, ok bool) {
|
|
return r.BasicAuth()
|
|
}
|