diff --git a/server/WebApi.cpp b/server/WebApi.cpp index 53c75d45..b0538d16 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -488,7 +488,7 @@ void addStreamProxy(const string &vhost, const string &app, const string &stream template static void getArgsValue(const HttpAllArgs &allArgs, const string &key, Type &value) { - auto val = allArgs["key"]; + auto val = allArgs[key]; if (!val.empty()) { value = (Type)val; }