diff options
author | stanly <stanly@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
commit | 6170310e8721e225f64ddabf7a7358253d7a1249 (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/http/fetch/httpfsm.rl6 | |
parent | cde218e65dfef5ce03a48d641fd8f7913cf17b2d (diff) | |
download | ydb-6170310e8721e225f64ddabf7a7358253d7a1249.tar.gz |
Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/fetch/httpfsm.rl6')
-rw-r--r-- | library/cpp/http/fetch/httpfsm.rl6 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/http/fetch/httpfsm.rl6 b/library/cpp/http/fetch/httpfsm.rl6 index d3b1425321..eab0328b18 100644 --- a/library/cpp/http/fetch/httpfsm.rl6 +++ b/library/cpp/http/fetch/httpfsm.rl6 @@ -86,10 +86,10 @@ response_status_line = http_version ws+ status_code reason_phrase? eol %set_stat ############ request status line ################# action set_request_uri { if (request_hd && buflen < FETCHER_URL_MAX) { - if (!request_hd->request_uri.empty()) { + if (!request_hd->request_uri.empty()) { return -2; } - request_hd->request_uri =TStringBuf(buf, buflen); + request_hd->request_uri =TStringBuf(buf, buflen); } } action set_http_method { @@ -225,8 +225,8 @@ mime_type = "text/plain"i %{c(MIME_TEXT)} | "application/x-bzip2"i | "application/x-rar"i ) %{c(MIME_ARCHIVE)} | "application/x-dosexec"i %{c(MIME_EXE)} | "application/x-gzip"i %{c(MIME_GZIP)} - | "application/json"i %{c(MIME_JSON)} - | ("application/javascript"i | "text/javascript"i) %{c(MIME_JAVASCRIPT)} + | "application/json"i %{c(MIME_JSON)} + | ("application/javascript"i | "text/javascript"i) %{c(MIME_JAVASCRIPT)} | "application/vnd.android.package-archive"i %{c(MIME_APK)} | ("image/x-icon"i | "image/vnd.microsoft.icon"i) %{c(MIME_IMAGE_ICON)} ; @@ -253,7 +253,7 @@ action set_location { buflen --; } if (hd && buflen < FETCHER_URL_MAX) { - hd->location = TStringBuf(buf, buflen); + hd->location = TStringBuf(buf, buflen); } } @@ -304,7 +304,7 @@ x_robots_tag = "x-robots-tag"i def >{ AcceptingXRobots = true; } x_robots_value ################# rel_canonical ############### action set_canonical { if (hd && buflen < FETCHER_URL_MAX) { - hd->rel_canonical = TStringBuf(buf, buflen); + hd->rel_canonical = TStringBuf(buf, buflen); } } |