2411: Remove golang<1.4 shim.
[arvados.git] / sdk / go / auth / auth.go
index 9c2a759f60ebe9acd11dd52574b7dc66f42fe7cc..730989b3a371ebcb2874784bbd76f668c22a6db2 100644 (file)
@@ -45,7 +45,7 @@ func (a *Credentials) LoadTokensFromHTTPRequest(r *http.Request) {
 
        // Load base64-encoded token from "Authorization: Basic ..."
        // header (typically used by git via credential helper)
-       if _, password, ok := BasicAuth(r); ok {
+       if _, password, ok := r.BasicAuth(); ok {
                a.Tokens = append(a.Tokens, password)
        }