# HG changeset patch # User Sebastien Jodogne # Date 1460710073 -7200 # Node ID ad95331c526a2ca68d279748f399e8dc77bb1d44 # Parent 325772dadcd6fb55469392041869d703008e276a trace log of http headers diff -r 325772dadcd6 -r ad95331c526a Core/HttpServer/MongooseServer.cpp --- a/Core/HttpServer/MongooseServer.cpp Thu Apr 14 17:34:43 2016 +0200 +++ b/Core/HttpServer/MongooseServer.cpp Fri Apr 15 10:47:53 2016 +0200 @@ -597,8 +597,11 @@ for (int i = 0; i < request->num_headers; i++) { std::string name = request->http_headers[i].name; + std::string value = request->http_headers[i].value; + std::transform(name.begin(), name.end(), name.begin(), ::tolower); - headers.insert(std::make_pair(name, request->http_headers[i].value)); + headers.insert(std::make_pair(name, value)); + VLOG(1) << "HTTP header: [" << name << "]: [" << value << "]"; } if (that->IsHttpCompressionEnabled())