Merge pull request #40 from dbrock/master
Compare HTTP headers case-insensitively
This commit is contained in:
commit
439232f750
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