aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdnet
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2020-06-26 02:24:13 +0300
committerlevlam <levlam@telegram.org>2020-06-26 02:24:13 +0300
commit8872fbf6aca12242ee8ab945bb3822f790cbb478 (patch)
treecdbeecbe6d1f4f3ec6199544a93faca718dbcf37 /tdnet
parenta9e95b7f4b4f00de0dec13d47ff25b723e7f4626 (diff)
Fix tdutils after merge.
GitOrigin-RevId: 5b9a863e405a9e3782157570156fda71bf2bb589
Diffstat (limited to 'tdnet')
-rw-r--r--tdnet/td/net/HttpQuery.cpp4
-rw-r--r--tdnet/td/net/HttpQuery.h10
2 files changed, 7 insertions, 7 deletions
diff --git a/tdnet/td/net/HttpQuery.cpp b/tdnet/td/net/HttpQuery.cpp
index cbc75d68e..c826e021d 100644
--- a/tdnet/td/net/HttpQuery.cpp
+++ b/tdnet/td/net/HttpQuery.cpp
@@ -24,8 +24,8 @@ MutableSlice HttpQuery::get_arg(Slice key) const {
return it == args_.end() ? MutableSlice() : it->second;
}
-td::vector<std::pair<string, string>> HttpQuery::get_args() const {
- td::vector<std::pair<string, string>> res;
+vector<std::pair<string, string>> HttpQuery::get_args() const {
+ vector<std::pair<string, string>> res;
res.reserve(args_.size());
for (auto &it : args_) {
res.emplace_back(it.first.str(), it.second.str());
diff --git a/tdnet/td/net/HttpQuery.h b/tdnet/td/net/HttpQuery.h
index da53e2e4f..fe89905d4 100644
--- a/tdnet/td/net/HttpQuery.h
+++ b/tdnet/td/net/HttpQuery.h
@@ -21,23 +21,23 @@ class HttpQuery {
public:
enum class Type : int8 { Empty, Get, Post, Response };
- td::vector<BufferSlice> container_;
+ vector<BufferSlice> container_;
Type type_ = Type::Empty;
int32 code_ = 0;
MutableSlice url_path_;
- td::vector<std::pair<MutableSlice, MutableSlice>> args_;
+ vector<std::pair<MutableSlice, MutableSlice>> args_;
MutableSlice reason_;
bool keep_alive_ = true;
- td::vector<std::pair<MutableSlice, MutableSlice>> headers_;
- td::vector<HttpFile> files_;
+ vector<std::pair<MutableSlice, MutableSlice>> headers_;
+ vector<HttpFile> files_;
MutableSlice content_;
Slice get_header(Slice key) const;
MutableSlice get_arg(Slice key) const;
- td::vector<std::pair<string, string>> get_args() const;
+ vector<std::pair<string, string>> get_args() const;
int get_retry_after() const;
};