aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/service/service.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /library/cpp/monlib/service/service.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/monlib/service/service.cpp')
-rw-r--r--library/cpp/monlib/service/service.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/monlib/service/service.cpp b/library/cpp/monlib/service/service.cpp
index 929efbf816..e486b15dd4 100644
--- a/library/cpp/monlib/service/service.cpp
+++ b/library/cpp/monlib/service/service.cpp
@@ -8,7 +8,7 @@
#include <util/generic/buffer.h>
#include <util/stream/str.h>
-#include <util/stream/buffer.h>
+#include <util/stream/buffer.h>
#include <util/stream/zerocopy.h>
#include <util/string/vector.h>
@@ -30,7 +30,7 @@ namespace NMonitoring {
return;
}
TString path = GetPath();
- if (!path.StartsWith('/')) {
+ if (!path.StartsWith('/')) {
out << "HTTP/1.1 400 Bad request\r\nConnection: Close\r\n\r\n";
return;
}
@@ -165,7 +165,7 @@ namespace NMonitoring {
throw; // just rethrow
}
- void TCoHttpServer::ProcessRequest(IOutputStream& out, const IHttpRequest& request) {
+ void TCoHttpServer::ProcessRequest(IOutputStream& out, const IHttpRequest& request) {
try {
TNetworkAddress addr(BindAddr, Port);
TSocket sock(addr);
@@ -257,7 +257,7 @@ namespace NMonitoring {
CoServer.Stop();
}
- void TMonService::DispatchRequest(IOutputStream& out, const IHttpRequest& request) {
+ void TMonService::DispatchRequest(IOutputStream& out, const IHttpRequest& request) {
if (strcmp(request.GetPath(), "/") == 0) {
out << "HTTP/1.1 200 Ok\nConnection: Close\n\n";
MtHandler(out, request);