Fix /getprofile not working properly

This commit is contained in:
Tindy X
2023-11-10 20:16:50 +08:00
parent 51b65ec437
commit 4620873220

View File

@@ -1255,7 +1255,8 @@ std::string getProfile(RESPONSE_CALLBACK_ARGS)
contents.emplace("token", token);
contents.emplace("profile_data", base64Encode(global.managedConfigPrefix + "/getprofile?" + joinArguments(argument)));
request.argument = argument;
std::copy(argument.cbegin(), argument.cend(), std::inserter(contents, contents.end()));
request.argument = contents;
return subconverter(request, response);
}