ci: fix the error of express-session used in http2 · forwardemail/superagent@bb3dc7a

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit bb3dc7a

committed

ci: fix the error of express-session used in http2

1 parent b6da894 commit bb3dc7a

File tree

1 file changed

+

3

-

0

lines changed

1 file changed

+

3

-

0

lines changed

Lines changed: 3 additions & 0 deletions

Original file line numberDiff line numberDiff line change

@@ -14,6 +14,9 @@ let http = require('http');

1414
1515

if (process.env.HTTP2_TEST) {

1616

http = require('http2');

17+

http.Http2ServerResponse.prototype._implicitHeader = function() {

18+

this.writeHead(this.statusCode);

19+

}

1720

}

1821
1922

app.use(cookieParser());

0 commit comments

Comments

 (0)