Commit 2ea1deaf authored by acesso's avatar acesso

Add comment on HAR on pushed objects

It seems that HAR 1.2 does not have a proper representaion for pushed objects. I could´t just add a custom parameter so I think a comment at response will not hurt anybody.
parent b06e339d
......@@ -1443,6 +1443,10 @@ void HttpClient::output_har(FILE *outfile) {
json_object_set_new(response, "headersSize", json_integer(-1));
json_object_set_new(response, "bodySize", json_integer(-1));
auto pushed = req->stream_id % 2 == 0;
json_object_set_new(response, "comment", json_string(pushed ? "Pushed Object" : ""));
json_object_set_new(entry, "cache", json_object());
auto timings = json_object();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment