Merge pull request #40 from dbrock/master

Compare HTTP headers case-insensitively
This commit is contained in:
Nikolai Mushegian 2014-09-17 16:53:04 -04:00
commit 439232f750

View file

@ -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();
}