Skip to content

Commit

Permalink
Merge pull request #58 from blibli-badak/dev-mh
Browse files Browse the repository at this point in the history
fix har not save any pending response
  • Loading branch information
argotri authored Aug 5, 2024
2 parents 765505f + a8ac89b commit 38c4574
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void setup() {

public HarTiming convertHarTiming() {
HarTiming harTiming = new HarTiming();
if (timing.isEmpty()) {
if (timing == null || timing.isEmpty()) {
return harTiming;
}
harTiming.setDns(timing.get().getDnsStart().intValue());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,13 @@ public void createHarFile() {
time,
windowHandle,
pair.getResponseBody()));
} else {
log.info("Response is null for %s", pair.getRequest().getUrl());
harEntries.add(createHarEntry(pair.getRequest(),
null,
time,
windowHandle,
null));
}
});
});
Expand Down

0 comments on commit 38c4574

Please sign in to comment.