http-client-functions.pl: Fixes bug13852

Message ID 20250520105739.7264-1-adolf.belka@ipfire.org
State Accepted
Commit 1e50e6e79163d3e0ef551044f1cd11807f6e2ba5
Headers
Series http-client-functions.pl: Fixes bug13852 |

Commit Message

Adolf Belka May 20, 2025, 10:57 a.m. UTC
  Suggested-by: Adam G <ag@ipfire.org>
Fixes: bug13852
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Tested-by: Adam G <ag@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/cfgroot/http-client-functions.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Stefan Schantl May 20, 2025, 11:59 a.m. UTC | #1
Good catch.

Thank you.

Acked-by: Stefan Schantl <stefan.schantl@ipfire.org>

Am 20. Mai 2025 12:57:48 schrieb Adolf Belka <adolf.belka@ipfire.org>:

> Suggested-by: Adam G <ag@ipfire.org>
> Fixes: bug13852
> Tested-by: Adolf Belka <adolf.belka@ipfire.org>
> Tested-by: Adam G <ag@ipfire.org>
> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
> ---
> config/cfgroot/http-client-functions.pl | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/config/cfgroot/http-client-functions.pl 
> b/config/cfgroot/http-client-functions.pl
> index 51687ffde..7f7675bbf 100644
> --- a/config/cfgroot/http-client-functions.pl
> +++ b/config/cfgroot/http-client-functions.pl
> @@ -178,7 +178,7 @@ sub downloader (%) {
> 	# Check if an file for etags has been given.
> 	if ($etags_file) {
> 		# Read-in Etags file for known Etags if the file is present.
> -		&readhash("$etags_file", \%etags) if (-f $etags_file);
> +		&General::readhash("$etags_file", \%etags) if (-f $etags_file);
>
> 		# Check if an Etag for the requested file is stored.
> 		if ($etags{$etagprefix}) {
> --
> 2.49.0
  

Patch

diff --git a/config/cfgroot/http-client-functions.pl b/config/cfgroot/http-client-functions.pl
index 51687ffde..7f7675bbf 100644
--- a/config/cfgroot/http-client-functions.pl
+++ b/config/cfgroot/http-client-functions.pl
@@ -178,7 +178,7 @@  sub downloader (%) {
 	# Check if an file for etags has been given.
 	if ($etags_file) {
 		# Read-in Etags file for known Etags if the file is present.
-		&readhash("$etags_file", \%etags) if (-f $etags_file);
+		&General::readhash("$etags_file", \%etags) if (-f $etags_file);
 
 		# Check if an Etag for the requested file is stored.
 		if ($etags{$etagprefix}) {