mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-12 06:11:03 -04:00
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()
|
||
|
}
|