Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: add Uint8Array to valid types
  • Loading branch information
rexagod committed May 23, 2020
commit f7a974e3a7e78cef26bf07452df92b1379da3e75
2 changes: 1 addition & 1 deletion lib/internal/http2/compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ class Http2ServerResponse extends Stream {
// Will not be forwarded to Http2ServerResponse object
// since this behavior is not allowed in compat mode
const err = new ERR_INVALID_ARG_TYPE('chunk',
['string', 'Buffer'],
['string', 'Buffer', 'Uint8Array'],
chunk);
// Throws an ERR_HTTP2_STREAM_ERROR error
this.destroy(err);
Expand Down