From 7c301defbd6f7f993bfc0448b697f2aee4d739a6 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 14 Jul 2015 21:37:34 +0900 Subject: [PATCH] clang-format src/nghttp.cc --- src/nghttp.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/nghttp.cc b/src/nghttp.cc index 78cd5652..eb423c6d 100644 --- a/src/nghttp.cc +++ b/src/nghttp.cc @@ -1376,10 +1376,11 @@ void HttpClient::output_har(FILE *outfile) { entry, "startedDateTime", json_string(util::format_iso8601(request_time).c_str())); json_object_set_new(entry, "time", json_real(time_sum)); - + 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(); 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(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));