Skip to content

Commit

Permalink
cleanup & docu
Browse files Browse the repository at this point in the history
  • Loading branch information
gitu committed Jun 29, 2023
1 parent a36aba9 commit 031b564
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion download/testharness.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ func withGitlabRegistryAuth() fixtureOpt {

authHeader := r.Header.Get("Authorization")

println(r.URL.String() + " -- " + r.Header.Get("Authorization"))
if authHeader == "" {
w.Header().Set("WWW-Authenticate", wwwAuthenticate)
return fmt.Errorf("no authorization header: %w", errUnauthorized)
Expand Down
2 changes: 2 additions & 0 deletions plugins/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ type HTTPAuthPlugin interface {
Prepare(*http.Request) error
}

// HTTPHeaderAuthPlugin represents a mechanism to provide a header for HTTP authentication for a REST service
type HTTPHeaderAuthPlugin interface {
// AuthHeader returns the header to be used for authentication
AuthHeader() (http.Header, error)
}

Expand Down

0 comments on commit 031b564

Please sign in to comment.