IssueNo:#I45HTT: 修改代码规范it++3

Description:修改代码规范it++
Sig:SIG_BscSoftSrv
Feature or Bugfix:Feature
Binary Source: No

Signed-off-by: liulinna4 <liulinna4@huawei.com>
This commit is contained in:
liulinna4 2022-03-09 01:05:36 +08:00
parent d507aadacf
commit 3d097ed58b

View File

@ -159,13 +159,13 @@ bool DownloadTaskNapi::ParseHeader(napi_env env, napi_value configValue, Downloa
return false;
}
auto names = NapiUtils::GetPropertyNames(env, header);
std::vector<std::string>::iterator nit = names.begin();
while (nit != names.end()) {
auto value = NapiUtils::GetStringPropertyUtf8(env, header, *nit);
std::vector<std::string>::iterator iter;
for (iter = names.begin(); iter != names.end(); ++iter)
{
auto value = NapiUtils::GetStringPropertyUtf8(env, header, *iter);
if (!value.empty()) {
config.SetHeader(NapiUtils::ToLower(*nit), value);
config.SetHeader(NapiUtils::ToLower(*iter), value);
}
nit++;
}
return true;
}