clang-format src/nghttp.cc
This commit is contained in:
parent
fb7775e382
commit
7c301defbd
|
@ -1379,7 +1379,8 @@ void HttpClient::output_har(FILE *outfile) {
|
||||||
|
|
||||||
auto pushed = req->stream_id % 2 == 0;
|
auto pushed = req->stream_id % 2 == 0;
|
||||||
|
|
||||||
json_object_set_new(entry, "comment", json_string(pushed ? "Pushed Object" : ""));
|
json_object_set_new(entry, "comment",
|
||||||
|
json_string(pushed ? "Pushed Object" : ""));
|
||||||
|
|
||||||
auto request = json_object();
|
auto request = json_object();
|
||||||
json_object_set_new(entry, "request", request);
|
json_object_set_new(entry, "request", request);
|
||||||
|
@ -1463,7 +1464,8 @@ void HttpClient::output_har(FILE *outfile) {
|
||||||
json_object_set_new(timings, "receive", json_real(receive_delta));
|
json_object_set_new(timings, "receive", json_real(receive_delta));
|
||||||
|
|
||||||
json_object_set_new(entry, "pageref", json_string(PAGE_ID));
|
json_object_set_new(entry, "pageref", json_string(PAGE_ID));
|
||||||
json_object_set_new(entry, "connection", json_string(util::utos(req->stream_id).c_str()));
|
json_object_set_new(entry, "connection",
|
||||||
|
json_string(util::utos(req->stream_id).c_str()));
|
||||||
}
|
}
|
||||||
|
|
||||||
json_dumpf(root, outfile, JSON_PRESERVE_ORDER | JSON_INDENT(2));
|
json_dumpf(root, outfile, JSON_PRESERVE_ORDER | JSON_INDENT(2));
|
||||||
|
|
Loading…
Reference in New Issue