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