Skip to content

Conversation

sudo-bmitch
Copy link
Contributor

Fixes issue

Describe the change

While the descriptor requires a size and media type, the referrer API does not. This makes regclient more tolerant of non-conformant implementations by only requiring the digest to consume the subject field.

How to verify it

go test ./scheme/...

Changelog text

  • Feat: Support incomplete subject descriptor.

Please verify and check that the pull request fulfills the following requirements

  • Tests have been added or not applicable
  • Documentation has been added, updated, or not applicable
  • Changes have been rebased to main
  • Multiple commits to the same code have been squashed

While the descriptor requires a size and media type, the referrer API does not.
This makes regclient more tolerant of non-conformant implementations.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
@sudo-bmitch sudo-bmitch merged commit ca88133 into regclient:main Dec 10, 2024
5 checks passed
@sudo-bmitch sudo-bmitch deleted the pr-allow-referrers-without-size branch December 10, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant