格式化与精简代码

This commit is contained in:
xiongziliang
2023-04-01 23:54:11 +08:00
parent 384c8677ea
commit 23f9a42f72
3 changed files with 8 additions and 8 deletions

View File

@@ -161,7 +161,7 @@ void do_http_hook(const string &url, const ArgsType &body, const function<void(c
GET_CONFIG(float, retry_delay, Hook::kRetryDelay);
const_cast<ArgsType &>(body)["mediaServerId"] = mediaServerId;
HttpRequester::Ptr requester(new HttpRequester);
auto requester = std::make_shared<HttpRequester>();
requester->setMethod("POST");
auto bodyStr = to_string(body);
requester->setBody(bodyStr);