Skip to content

Commit

Permalink
#228 h2 entries have no reqest.method attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Mrowetz committed Apr 1, 2018
1 parent fc9dfb6 commit 65d4d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/transformers/har-heuristics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 65d4d10

Please sign in to comment.