From ef52442247a3f5b4dcd14836e3ed18de16826cd6 Mon Sep 17 00:00:00 2001 From: b1rtek <53182944+B1rtek@users.noreply.github.com> Date: Fri, 15 Nov 2024 16:32:26 +0100 Subject: [PATCH] Renamed headersWithName to getAllHeadersNamed, I guess that's a better name --- loader/include/Geode/utils/web.hpp | 2 +- loader/src/utils/web.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/include/Geode/utils/web.hpp b/loader/include/Geode/utils/web.hpp index c2e9ffd9..d762c724 100644 --- a/loader/include/Geode/utils/web.hpp +++ b/loader/include/Geode/utils/web.hpp @@ -91,7 +91,7 @@ namespace geode::utils::web { * @param name name of the header * @return std::optional> */ - std::optional> headersWithName(std::string_view name) const; + std::optional> getAllHeadersNamed(std::string_view name) const; }; class GEODE_DLL WebProgress final { diff --git a/loader/src/utils/web.cpp b/loader/src/utils/web.cpp index 0df7417c..e14ab106 100644 --- a/loader/src/utils/web.cpp +++ b/loader/src/utils/web.cpp @@ -152,7 +152,7 @@ std::optional WebResponse::header(std::string_view name) const { return std::nullopt; } -std::optional> WebResponse::headersWithName(std::string_view name) const { +std::optional> WebResponse::getAllHeadersNamed(std::string_view name) const { if (auto str = std::string(name); m_impl->m_headers.contains(str)) { return m_impl->m_headers.at(str); }