From 2509b10e63d86e158ed37a462bd86dfe132979d1 Mon Sep 17 00:00:00 2001 From: Kinshuk Bairagi Date: Thu, 2 Mar 2023 08:57:39 +0530 Subject: [PATCH] Config load, compare headers case-insensitive (#75) * Config load, compare headers case-insensitive --- tinyphone/config.cpp | 3 ++- tinyphone/stampver.inf | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tinyphone/config.cpp b/tinyphone/config.cpp index 8ce7697..cfd7056 100644 --- a/tinyphone/config.cpp +++ b/tinyphone/config.cpp @@ -4,6 +4,7 @@ #include "net.h" #include "utils.h" #include "crypt.h" +#include #ifdef __APPLE__ #include "Tinyphone-C-Interface.h" @@ -62,7 +63,7 @@ namespace tp { // std::cout << i->first << ":" << i->second << ' ' << std::endl; auto contentTypeIt = std::find_if(remoteConfig.headers.rbegin(), remoteConfig.headers.rend(), - [](const std::pair& element) { return element.first == "Content-Type"; }); + [](const std::pair& element) { return boost::iequals(element.first,"Content-Type"); }); if (contentTypeIt != remoteConfig.headers.rend()){ contentType = contentTypeIt->second; diff --git a/tinyphone/stampver.inf b/tinyphone/stampver.inf index 48a42ef..7468bcb 100644 --- a/tinyphone/stampver.inf +++ b/tinyphone/stampver.inf @@ -1,5 +1,5 @@ ;StampVer information file -FileVersion=36.0.0.83 -ProductVersion=36.0.0.83 +FileVersion=36.0.0.84 +ProductVersion=36.0.0.84 FileFormat=%a.%b.%c ProductFormat=%a.%b.%c