Skip to content

Commit

Permalink
fix decode error with no method (arkime#2429)
Browse files Browse the repository at this point in the history
  • Loading branch information
awick authored Oct 6, 2023
1 parent 410e009 commit 038cbfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions viewer/decode.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ class ItemHTTPStream extends ItemTransform {
if (line.length === 0) {
if (this.code / 100 === 1 || this.code === 204 || this.code === 304) {
this.states[item.client] = ItemHTTPStream.STATES.start;
} else if (this.method === undefined) {
} else if (this.method.match(/^(CONNECT)$/)) {
this.states[item.client] = ItemHTTPStream.STATES.pass;
} else if (this.transferEncoding[item.client] === 'CHUNKED') {
Expand Down

0 comments on commit 038cbfe

Please sign in to comment.