fix(ecr): forward every Accept header to the backing registry (#5069)

The data plane proxy overwrote repeated Accept headers, so only the last one reached registry:2.

* Fix #4869

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
This commit is contained in:
Matheus Oliveira authored and GitHub committed 2026-10-04 10:05:40 -04:00
1 parent 82977a7f03
commit 32f01ba13d
2 files changed
+59 -1

No files matched your search

@@ -171,7 +171,7 @@ public class EcrRegistryDataPlane {
context.request().headers().forEach(header -> {
if (!HOP_BY_HOP_HEADERS.contains(header.getKey().toLowerCase())
&& !"host".equalsIgnoreCase(header.getKey())) {
upstream.putHeader(header.getKey(), header.getValue());
upstream.headers().add(header.getKey(), header.getValue());
}
});
if (context.request().getHeader("Content-Length") == null