diff --git a/src/util/auth_tool.cpp b/src/util/auth_tool.cpp index 008880e..1bd5009 100644 --- a/src/util/auth_tool.cpp +++ b/src/util/auth_tool.cpp @@ -20,8 +20,8 @@ void AuthTool::FilterAndSetSignHeader(const std::map &h for(std::map::const_iterator itr = headers.begin(); itr != headers.end(); ++itr) { if( (itr->first[0] == 'x' || itr->first[0] == 'X') - || !strcasecmp(itr->first.c_str(), "content-type") - || !strcasecmp(itr->first.c_str(), "host")) { + || strcasecmp(itr->first.c_str(), "content-type") // do not verify 'content-type' and 'host' + || strcasecmp(itr->first.c_str(), "host")) { filted_req_headers->insert(std::make_pair(itr->first, itr->second)); } }