From a02255aa7ab5af95bef183bfcd212a963d0e8187 Mon Sep 17 00:00:00 2001 From: derhelge Date: Mon, 19 Feb 2024 14:12:51 +0100 Subject: [PATCH] save navigation for http-header (#3076) Co-authored-by: Helge Wiethoff --- lib/oxidized/input/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oxidized/input/http.rb b/lib/oxidized/input/http.rb index 91857e0aa..ca9a4b5f0 100644 --- a/lib/oxidized/input/http.rb +++ b/lib/oxidized/input/http.rb @@ -56,7 +56,7 @@ def get_http(path) res = make_request(uri, ssl_verify) - if res.code == '401' && res['www-authenticate'].include?('Digest') + if res.code == '401' && res['www-authenticate']&.include?('Digest') uri.user = @username uri.password = @password Oxidized.logger.debug "Server requires Digest authentication"