aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/misc/httpreqdata.cpp
diff options
context:
space:
mode:
authorArslan Urtashev <urtashev@gmail.com>2022-02-10 16:48:55 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:55 +0300
commitb97740540e7302cec9efa181e106ae1990a0cc1c (patch)
tree1a2a0bfe523c3272d207e2d75254a41d3945a3bb /library/cpp/http/misc/httpreqdata.cpp
parent31789673dc3562bc7540e00fe031ba84ae282c24 (diff)
downloadydb-b97740540e7302cec9efa181e106ae1990a0cc1c.tar.gz
Restoring authorship annotation for Arslan Urtashev <urtashev@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/misc/httpreqdata.cpp')
-rw-r--r--library/cpp/http/misc/httpreqdata.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/http/misc/httpreqdata.cpp b/library/cpp/http/misc/httpreqdata.cpp
index f6951f68cd..035eccf7b9 100644
--- a/library/cpp/http/misc/httpreqdata.cpp
+++ b/library/cpp/http/misc/httpreqdata.cpp
@@ -1,7 +1,7 @@
#include "httpreqdata.h"
-#include <util/stream/mem.h>
-
+#include <util/stream/mem.h>
+
TBaseServerRequestData::TBaseServerRequestData(SOCKET s)
: Addr(nullptr)
, Host()
@@ -46,14 +46,14 @@ void TBaseServerRequestData::AppendQueryString(const char* str, size_t length) {
SearchLength = ModifiedQueryString.size() - 1; // ignore terminator
}
-void TBaseServerRequestData::SetRemoteAddr(TStringBuf addr) {
- TMemoryOutput out(AddrData, Y_ARRAY_SIZE(AddrData) - 1);
- out.Write(addr.substr(0, Y_ARRAY_SIZE(AddrData) - 1));
- *out.Buf() = '\0';
-
- Addr = AddrData;
-}
-
+void TBaseServerRequestData::SetRemoteAddr(TStringBuf addr) {
+ TMemoryOutput out(AddrData, Y_ARRAY_SIZE(AddrData) - 1);
+ out.Write(addr.substr(0, Y_ARRAY_SIZE(AddrData) - 1));
+ *out.Buf() = '\0';
+
+ Addr = AddrData;
+}
+
const char* TBaseServerRequestData::RemoteAddr() const {
if (!Addr) {
*AddrData = 0;