From 879f4521cc0aaf4b123eb5a9bfb748fea3b82d31 Mon Sep 17 00:00:00 2001 From: Pedro Brochado Date: Thu, 8 Oct 2026 13:59:54 -0300 Subject: [PATCH] Pass generic arguments to AsyncContentCache.make_response override Pulpcore requires passing an extra argument to that method, but that breaks this override if it expects an exact set of arguments. --- pulp_container/app/cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pulp_container/app/cache.py b/pulp_container/app/cache.py index 1d7fb6341..fea193099 100644 --- a/pulp_container/app/cache.py +++ b/pulp_container/app/cache.py @@ -40,9 +40,9 @@ def make_key(self, request): key = ":".join(all_keys[k] for k in self.keys) return key - async def make_response(self, key, base_key): + async def make_response(self, key, base_key, *args, **kwargs): """Fix the Content-Type header to remove the charset.""" - response = await super().make_response(key, base_key) + response = await super().make_response(key, base_key, *args, **kwargs) if response is not None: if content_type := response.headers.get("Content-Type"): response.headers["Content-Type"] = content_type.split(";")[0]