Modify FillRequestDetails to pass headers dictionary.
This commit is contained in:
parent
4d364fa27a
commit
9c04d18387
1 changed files with 7 additions and 0 deletions
|
@ -180,6 +180,13 @@ void FillRequestDetails(base::DictionaryValue* details,
|
||||||
GetUploadData(list.get(), request);
|
GetUploadData(list.get(), request);
|
||||||
if (!list->empty())
|
if (!list->empty())
|
||||||
details->Set("uploadData", std::move(list));
|
details->Set("uploadData", std::move(list));
|
||||||
|
std::unique_ptr<base::DictionaryValue> headers_value(
|
||||||
|
new base::DictionaryValue);
|
||||||
|
for (net::HttpRequestHeaders::Iterator it(request->extra_request_headers());
|
||||||
|
it.GetNext();) {
|
||||||
|
headers_value->SetString(it.name(), it.value());
|
||||||
|
}
|
||||||
|
details->Set("headers", std::move(headers_value));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetUploadData(base::ListValue* upload_data_list,
|
void GetUploadData(base::ListValue* upload_data_list,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue