Browse Source

* HTTPServer.cpp: add request logging

pull/489/head
hagen 8 years ago
parent
commit
f131e31949
  1. 2
      HTTPServer.cpp

2
HTTPServer.cpp

@ -738,6 +738,8 @@ namespace http { @@ -738,6 +738,8 @@ namespace http {
std::string content;
HTTPRes res;
LogPrint(eLogDebug, "HTTPServer: request: ", req.uri);
if (needAuth && !CheckAuth(req)) {
res.code = 401;
res.headers.insert(std::pair<std::string, std::string>("WWW-Authenticate", "Basic realm=\"WebAdmin\""));

Loading…
Cancel
Save