Skip to content

Commit

Permalink
Config load, compare headers case-insensitive (#75)
Browse files Browse the repository at this point in the history
* Config load, compare headers case-insensitive
  • Loading branch information
kingster authored Mar 2, 2023
1 parent 900407b commit 2509b10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tinyphone/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "net.h"
#include "utils.h"
#include "crypt.h"
#include <boost/algorithm/string.hpp>

#ifdef __APPLE__
#include "Tinyphone-C-Interface.h"
Expand Down Expand Up @@ -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<std::string, std::string>& element) { return element.first == "Content-Type"; });
[](const std::pair<std::string, std::string>& element) { return boost::iequals(element.first,"Content-Type"); });

if (contentTypeIt != remoteConfig.headers.rend()){
contentType = contentTypeIt->second;
Expand Down
4 changes: 2 additions & 2 deletions tinyphone/stampver.inf
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2509b10

Please sign in to comment.