|
|
@ -940,6 +940,11 @@ void ServiceConnection(AcceptedConnection *conn)
|
|
|
|
// Read HTTP message headers and body
|
|
|
|
// Read HTTP message headers and body
|
|
|
|
ReadHTTPMessage(conn->stream(), mapHeaders, strRequest, nProto);
|
|
|
|
ReadHTTPMessage(conn->stream(), mapHeaders, strRequest, nProto);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (strURI != "/") {
|
|
|
|
|
|
|
|
conn->stream() << HTTPReply(HTTP_NOT_FOUND, "", false) << std::flush;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Check authorization
|
|
|
|
// Check authorization
|
|
|
|
if (mapHeaders.count("authorization") == 0)
|
|
|
|
if (mapHeaders.count("authorization") == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|