add '/' when the MS_RDR_PATH does not end with '/'

This commit is contained in:
luopengting 2021-05-09 08:33:16 +08:00
parent 8e126e3254
commit 7feb309e06
1 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,9 @@ void EnvConfigParser::ParseFromEnv() {
has_rdr_setting_ = true;
std::string path = path_env.value();
if (!path.empty()) {
if (path.back() != '/') {
path += '/';
}
rdr_path_ = path;
}
}