fix(api/registry): encode X-Registry-Auth header using base64url instead of base64 [EE-4726] (#8492)

pull/8841/head
LP B 2023-04-24 13:57:39 +02:00 committed by GitHub
parent a7404e00d1
commit 9b287f3020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ func (transport *Transport) decorateRegistryAuthenticationHeader(request *http.R
return err
}
header := base64.StdEncoding.EncodeToString(headerData)
header := base64.URLEncoding.EncodeToString(headerData)
request.Header.Set("X-Registry-Auth", header)
}