Fix Api.async_http logging empty urls

This commit is contained in:
2026-01-15 08:38:35 -06:00
parent f30658ffc2
commit 355a4503ea

View File

@@ -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