projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
12447: Require Content-Length in KeepClient.Get
[arvados.git]
/
sdk
/
go
/
auth
/
auth.go
diff --git
a/sdk/go/auth/auth.go
b/sdk/go/auth/auth.go
index ca4eb948b1220c982ef25fa03c9175f40148a797..730989b3a371ebcb2874784bbd76f668c22a6db2 100644
(file)
--- a/
sdk/go/auth/auth.go
+++ b/
sdk/go/auth/auth.go
@@
-1,3
+1,7
@@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: Apache-2.0
+
package auth
import (
package auth
import (
@@
-41,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)
// 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)
}
a.Tokens = append(a.Tokens, password)
}