Mercurial > hg > orthanc
changeset 1977:ad95331c526a
trace log of http headers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 15 Apr 2016 10:47:53 +0200 |
parents | 325772dadcd6 |
children | 0c9c4e36c2b9 |
files | Core/HttpServer/MongooseServer.cpp |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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())