Skip to content

Commit 8c334fa

Browse files
committed
one more fix
1 parent 100118d commit 8c334fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playwright/src/main/java/com/microsoft/playwright/impl/BrowserContextImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ void recordIntoHar(PageImpl page, Path har, RouteFromHAROptions options, HarCont
561561
params.add("page", page.toProtocolRef());
562562
}
563563
JsonObject recordHarArgs = new JsonObject();
564-
recordHarArgs.addProperty("zip", har.endsWith(".zip"));
564+
recordHarArgs.addProperty("zip", har.toString().endsWith(".zip"));
565565
recordHarArgs.addProperty("content", contentPolicy.name().toLowerCase());
566566
recordHarArgs.addProperty("mode", (options.updateMode == null ? HarMode.MINIMAL : options.updateMode).name().toLowerCase());
567567
addHarUrlFilter(recordHarArgs, options.url);

0 commit comments

Comments
 (0)