Skip to content

Commit

Permalink
save navigation for http-header (#3076)
Browse files Browse the repository at this point in the history
Co-authored-by: Helge Wiethoff <[email protected]>
  • Loading branch information
derhelge and Helge Wiethoff authored Feb 19, 2024
1 parent e59b50f commit a02255a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oxidized/input/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a02255a

Please sign in to comment.