mirror of
https://gitee.com/openharmony/request_request
synced 2025-02-20 15:22:05 +00:00
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:
parent
d507aadacf
commit
3d097ed58b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user