Merge remote-tracking branch 'upstream/master' into master

This commit is contained in:
monktan
2020-10-09 09:41:43 +08:00
22 changed files with 307 additions and 113 deletions

View File

@@ -134,6 +134,9 @@ const char *getContentType(const HttpArgs &value){
}
static void do_http_hook(const string &url,const ArgsType &body,const function<void(const Value &,const string &)> &fun){
GET_CONFIG(string,mediaServerId,General::kMediaServerId);
const_cast<ArgsType &>(body)["mediaServerId"] = mediaServerId;
GET_CONFIG(float,hook_timeoutSec,Hook::kTimeoutSec);
HttpRequester::Ptr requester(new HttpRequester);
requester->setMethod("POST");