Skip to content

Commit

Permalink
Added empty CRLF for http2 sent headers to avoid skipping missed head…
Browse files Browse the repository at this point in the history
…ers in debug (#97)
  • Loading branch information
parthverma1 authored Aug 6, 2024
1 parent 1deffd0 commit 8207d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http2/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Http2Request extends EventEmitter {
}

get _header () {
return Object.entries(this.stream.sentHeaders)
return '\r\n' + Object.entries(this.stream.sentHeaders)
.map(([key, value]) => `${key}: ${value}`)
.join('\r\n') + '\r\n\r\n'
}
Expand Down

0 comments on commit 8207d60

Please sign in to comment.