diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-11 19:15:32 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-02-11 19:15:32 +0300 |
commit | 623b75523fbec13f26b532972a46e75faf149088 (patch) | |
tree | ce04a52fd058b3017037ecc4a843a39c2a829575 /library/cpp/messagebus/www/www.cpp | |
parent | 4f5398551111a2b05b55de391d5d296bd0a670bf (diff) | |
download | ydb-623b75523fbec13f26b532972a46e75faf149088.tar.gz |
intermediate changes
ref:ee911405f4248489c0aa2817134b7162e0b94f18
Diffstat (limited to 'library/cpp/messagebus/www/www.cpp')
-rw-r--r-- | library/cpp/messagebus/www/www.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/library/cpp/messagebus/www/www.cpp b/library/cpp/messagebus/www/www.cpp index 62ec241d85..6c8b4bc732 100644 --- a/library/cpp/messagebus/www/www.cpp +++ b/library/cpp/messagebus/www/www.cpp @@ -6,11 +6,11 @@ #include <library/cpp/messagebus/remote_connection_status.h> #include <library/cpp/monlib/deprecated/json/writer.h> -#include <library/cpp/archive/yarchive.h> #include <library/cpp/http/fetch/httpfsm.h> #include <library/cpp/http/fetch/httpheader.h> #include <library/cpp/http/server/http.h> #include <library/cpp/json/writer/json.h> +#include <library/cpp/resource/resource.h> #include <library/cpp/uri/http_url.h> #include <util/string/cast.h> @@ -165,18 +165,6 @@ namespace { } -const unsigned char WWW_STATIC_DATA[] = { -#include "www_static.inc" -}; - -class TWwwStaticLoader: public TArchiveReader { -public: - TWwwStaticLoader() - : TArchiveReader(TBlob::NoCopy(WWW_STATIC_DATA, sizeof(WWW_STATIC_DATA))) - { - } -}; - struct TBusWww::TImpl { // TODO: use weak pointers TNamedValues<TBusMessageQueuePtr> Queues; @@ -728,7 +716,7 @@ struct TBusWww::TImpl { } else { os << HTTP_OK_BIN; } - TBlob blob = Singleton<TWwwStaticLoader>()->ObjectBlobByKey(TString("/") + TString(path)); + auto blob = NResource::Find(TString("/") + TString(path)); os.Write(blob.Data(), blob.Size()); } |