mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
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:
1 parent
82977a7f03
commit
32f01ba13d
2 files changed
+59
-1
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user