From c8f0fb73e49f6b6b6ac1690c585c25ab7dbd2b88 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 11 Sep 2025 00:01:46 +0100 Subject: Always pass API URL to curlGetUserAgentDetail --- src/ingestor.hpp | 2 ++ src/uaLookup.hpp | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ingestor.hpp b/src/ingestor.hpp index d9d49a3..f181ea3 100644 --- a/src/ingestor.hpp +++ b/src/ingestor.hpp @@ -31,6 +31,8 @@ namespace WebStat { template void storeLogLine(DB::Connection *, const std::tuple &) const; + std::string userAgentAPI = "https://useragentstring.com"; + protected: size_t linesRead = 0; size_t linesParsed = 0; diff --git a/src/uaLookup.hpp b/src/uaLookup.hpp index 3c43371..5529a40 100644 --- a/src/uaLookup.hpp +++ b/src/uaLookup.hpp @@ -30,6 +30,5 @@ namespace WebStat { std::string result; }; - std::unique_ptr curlGetUserAgentDetail( - std::string_view uas, const char * baseUrl = "https://useragentstring.com"); + std::unique_ptr curlGetUserAgentDetail(std::string_view uas, const char * baseUrl); } -- cgit v1.2.3