aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/fetch/httpfsm.h
diff options
context:
space:
mode:
authorlonelly <lonelly@yandex-team.ru>2022-02-10 16:49:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:49 +0300
commitf1a86949d52e1185ed4f05de191b50386abc68f4 (patch)
tree4ab614bf67ba79561cf145781e24d900492a4828 /library/cpp/http/fetch/httpfsm.h
parent7107d44a6a6d3cd0a7ea831aa0027b2840b17365 (diff)
downloadydb-f1a86949d52e1185ed4f05de191b50386abc68f4.tar.gz
Restoring authorship annotation for <lonelly@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/fetch/httpfsm.h')
-rw-r--r--library/cpp/http/fetch/httpfsm.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/http/fetch/httpfsm.h b/library/cpp/http/fetch/httpfsm.h
index c4abdcd0d2..18c00893a6 100644
--- a/library/cpp/http/fetch/httpfsm.h
+++ b/library/cpp/http/fetch/httpfsm.h
@@ -24,12 +24,12 @@ struct THttpHeaderParser {
}
int Init(THttpHeader* h) {
- int ret = Init((THttpBaseHeader*)(h));
+ int ret = Init((THttpBaseHeader*)(h));
hd = h;
hd->Init();
hreflangpos = hd->hreflangs;
hreflangspace = HREFLANG_MAX;
- return ret;
+ return ret;
}
int Init(THttpAuthHeader* h) {
@@ -38,11 +38,11 @@ struct THttpHeaderParser {
return ret;
}
int Init(THttpRequestHeader* h) {
- int ret = Init((THttpBaseHeader*)(h));
- request_hd = h;
- request_hd->Init();
- return ret;
- }
+ int ret = Init((THttpBaseHeader*)(h));
+ request_hd = h;
+ request_hd->Init();
+ return ret;
+ }
THttpHeader* hd;
long I;
@@ -67,16 +67,16 @@ private:
THttpBaseHeader* base_hd;
int cs;
-private:
+private:
int Init(THttpBaseHeader* header) {
- base_hd = header;
+ base_hd = header;
auth_hd = nullptr;
request_hd = nullptr;
hd = nullptr;
- init();
- return 0;
- }
-
+ init();
+ return 0;
+ }
+
int execute(unsigned char* inBuf, int len);
void init();
};