From 355a4503eaf45015d2bf792354905aaaae56fab0 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Thu, 15 Jan 2026 08:38:35 -0600 Subject: [PATCH] Fix Api.async_http logging empty urls --- lib/api.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/api.rb b/lib/api.rb index 425c3dc..d8551c4 100644 --- a/lib/api.rb +++ b/lib/api.rb @@ -60,15 +60,15 @@ class W3DHub end # Handle arbitrary urls that may come through - url = nil if path.start_with?("http") uri = URI(path) + endpoint = uri.origin path = uri.request_uri - else - url = "#{endpoint}#{path}" end + url = "#{endpoint}#{path}" + logger.debug(LOG_TAG) { "Fetching #{method.to_s.upcase} \"#{url}\"..." } # Inject Authorization header if account data is populated