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.
This commit is contained in:
acesso 2015-06-27 09:47:53 -03:00
parent b06e339dbb
commit 2ea1deafd0
1 changed files with 4 additions and 0 deletions

View File

@ -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();