forked from TrueCloudLab/distribution
3f4c558dac
Signed-off-by: Wang Yan <wangyan@vmware.com>
12 lines
171 B
Go
12 lines
171 B
Go
//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()
|
|
}
|