Skip to content
Closed
Show file tree
Hide file tree
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
change term
  • Loading branch information
sagitsofan committed Dec 14, 2018
commit 0ab7481a2dd5a64c3cbb7c6ca03e3f40162e38d6
5 changes: 4 additions & 1 deletion lib/internal/http2/compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ function statusMessageWarn() {
}

function isConnectionHeaderAllowed(name, value) {
return (name === constants.HTTP2_HEADER_CONNECTION && value === 'trailers');
if (name !== constants.HTTP2_HEADER_CONNECTION)
return true;
else
return value !== 'trailers';
}

function connectionHeaderMessageWarn() {
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-http2-compat-serverresponse-end.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';

console.log("1111")
const {
mustCall,
mustNotCall,
Expand Down