camallo / dkregistry-rs

A pure-Rust asynchronous library for Docker Registry API v2
Apache License 2.0
62 stars 39 forks source link

Allow passing custom set of accepted types with optional weight #212

Closed vrutkovs closed 2 years ago

vrutkovs commented 2 years ago

Some registries don't parse weight parameter correctly, some require custom parameter weights.

This commits allows passing custom set of accepted types (with optional weight) and moves GCR workaround from v2/manifest/mod.rs to config.rs.

Ref: https://bugzilla.redhat.com/show_bug.cgi?id=2010497

vrutkovs commented 2 years ago

cc @PratikMahajan @wking