Compare HTTP headers case-insensitively
See <https://groups.google.com/d/msg/nodejs/XIU55IYtfJo/feUp9Fz7p14J>
This commit is contained in:
parent
07e3947ed4
commit
bd846576f6
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue