Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: this._implicitHeader is not a function #55

Closed
lukasoppermann opened this issue Aug 5, 2020 · 1 comment
Closed

TypeError: this._implicitHeader is not a function #55

lukasoppermann opened this issue Aug 5, 2020 · 1 comment

Comments

@lukasoppermann
Copy link

Hey, sadly you have the same issue as the express-compress package: expressjs#122 This makes it not work with connect on a normal http2 server. Is there a chance you could change this?

@fabiwlf
Copy link

fabiwlf commented May 5, 2021

If you still need it for http2, you can just extend the express module:

import express from "express";
express.response._implicitHeader = function () {
	this.writeHead(this.statusCode);
};
var app = express();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants