From 65d4d10a816e1eda077e40d548837b7727fd38b6 Mon Sep 17 00:00:00 2001 From: Michael Mrowetz Date: Sun, 1 Apr 2018 12:02:41 +0200 Subject: [PATCH] #228 h2 entries have no reqest.method attribute --- src/ts/transformers/har-heuristics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/transformers/har-heuristics.ts b/src/ts/transformers/har-heuristics.ts index 49e2a6ae..21910711 100644 --- a/src/ts/transformers/har-heuristics.ts +++ b/src/ts/transformers/har-heuristics.ts @@ -40,7 +40,7 @@ function isCompressible(entry: Entry, requestType: RequestType): boolean { * @returns {boolean} */ function hasCacheIssue(entry: Entry) { - if (entry.request.method.toLowerCase() !== "get") { + if (!entry.request.method || entry.request.method.toLowerCase() !== "get") { return false; } if (entry.response.status === 204 || !misc.isInStatusCodeRange(entry.response.status, 200, 299)) {