mirror of
https://github.com/distribution/distribution.git
synced 2025-09-07 18:00:55 +00:00
Change the default signature to v2 auth
The reason we prefer v2 is that it performs better since it does not hash the payloads.
This commit is contained in:
@@ -136,7 +136,7 @@ func FromParameters(parameters map[string]interface{}) (*Driver, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
v4AuthBool := true
|
v4AuthBool := false
|
||||||
v4Auth, ok := parameters["v4auth"]
|
v4Auth, ok := parameters["v4auth"]
|
||||||
if ok {
|
if ok {
|
||||||
v4AuthBool, ok = v4Auth.(bool)
|
v4AuthBool, ok = v4Auth.(bool)
|
||||||
|
Reference in New Issue
Block a user