From bd846576f61dbd460c5f4afdd1eb9cd05b3be5eb Mon Sep 17 00:00:00 2001 From: Daniel Brockman Date: Wed, 17 Sep 2014 22:48:05 +0200 Subject: [PATCH] Compare HTTP headers case-insensitively See --- src/network/http/http_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/http/http_connection.cpp b/src/network/http/http_connection.cpp index 79433c7..309866d 100644 --- a/src/network/http/http_connection.cpp +++ b/src/network/http/http_connection.cpp @@ -172,7 +172,7 @@ http::request connection::read_request()const { fc::string request::get_header( const fc::string& key )const { for( auto itr = headers.begin(); itr != headers.end(); ++itr ) { - if( itr->key == key ) { return itr->val; } + if( boost::iequals(itr->key, key) ) { return itr->val; } } return fc::string(); }