Skip to content

Commit

Permalink
ci: fix the error of express-session used in http2
Browse files Browse the repository at this point in the history
  • Loading branch information
yunnysunny committed May 8, 2022
1 parent b6da894 commit bb3dc7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/node/agency.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ let http = require('http');

if (process.env.HTTP2_TEST) {
http = require('http2');
http.Http2ServerResponse.prototype._implicitHeader = function() {
this.writeHead(this.statusCode);
}
}

app.use(cookieParser());
Expand Down

0 comments on commit bb3dc7a

Please sign in to comment.