From 5fab6ddddc84cb2ccc0ceb8134bc2a7a88ec3438 Mon Sep 17 00:00:00 2001 From: tarilabs Date: Mon, 24 Jun 2024 22:29:47 +0200 Subject: [PATCH] basic headers maintenance Signed-off-by: tarilabs --- oras/auth/basic.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/oras/auth/basic.py b/oras/auth/basic.py index 686eeea9..bd9e72ac 100644 --- a/oras/auth/basic.py +++ b/oras/auth/basic.py @@ -39,4 +39,8 @@ def authenticate_request( :param originalResponse: original response to get the Www-Authenticate header :type originalResponse: requests.Response """ - return self.get_auth_header(), True + result = {} + if headers is not None: + result.update(headers) + result.update(self.get_auth_header()) + return result, True