mirror of
https://github.com/distribution/distribution.git
synced 2026-01-15 14:58:57 +00:00
Since version 3.0.0, the response completed log line is no longer present for HEAD requests to manifests that return 200. The regression is caused by the implicit handling of manifest HEAD responses that bypass the logging middleware when returning from `GetManifest`. This change ensures that the logging middleware handles responses for manifest HEAD requests by explicitly writing `StatusOK` into the response header before returning from `GetManifest`. Closes: https://github.com/distribution/distribution/issues/4733 Signed-off-by: Thomas Cuthbert <tom.cuthbert@elastic.co>