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

gzippo is not working with newest connect/express #43

Open
Almad opened this issue Jul 9, 2012 · 11 comments
Open

gzippo is not working with newest connect/express #43

Almad opened this issue Jul 9, 2012 · 11 comments

Comments

@Almad
Copy link

Almad commented Jul 9, 2012

staticSend has been extracted to separate library

Almad added a commit to apiaryio/gzippo that referenced this issue Jul 9, 2012
Almad added a commit to apiaryio/gzippo that referenced this issue Jul 9, 2012
@Almad
Copy link
Author

Almad commented Jul 9, 2012

(sorry for the first bad fix)

Almad added a commit to apiaryio/gzippo that referenced this issue Jul 10, 2012
@uipoet
Copy link

uipoet commented Jul 13, 2012

+1. Updated to express 3.0.0beta6 and no worky.

ethul added a commit to ethul/oregano that referenced this issue Jul 14, 2012
Because of issue tomgco/gzippo#43, using a specific express version to
side-step the problem until it is resolved.
@dhruv-bhatia
Copy link

npm install [email protected] on the culprit project seems to fix this for me (I'm on the latest [email protected] with Gzippo working as expected).

@ryanseys
Copy link

Line 17 to 21

try {
    staticSend = require('connect').static.send; //returns undefined, doesn't throw an error
} catch (e) {
    staticSend = require('express').static.send;
}

require('connect').static.send; //returns undefined, so test for undefined
//or reorder so that staticSend = require('express').static.send; is tried before require('connect').static.send;

@serby
Copy link
Contributor

serby commented Sep 14, 2012

+1 When will this be fixed?

@aozora
Copy link

aozora commented Sep 29, 2012

+1 needed!

@reid-rigo
Copy link

my proposed solution is the following: reid-rigo@555be0c

using connect as a dependency instead of the connect/express shenanigans, i rework the pass() function to simply pass non-eligible requests to the connect 2.5.x static middleware

@TravelingTechGuy
Copy link

Using Express3.0.0rc4, getting this error. I think it's the same others are experiencing, if not, I'll move to another issue:

/Users/Projects/tq/server/node_modules/gzippo/lib/staticGzip.js:108
staticSend(req, res, next, o);
^
TypeError: undefined is not a function
at pass (/Users/Projects/tq/server/node_modules/gzippo/lib/staticGzip.js:108:4)
at module.exports (/Users/Projects/tq/server/node_modules/gzippo/lib/staticGzip.js:185:12)
at Object.oncomplete (fs.js:297:15)

@tomgco
Copy link
Owner

tomgco commented Oct 3, 2012

Hello,

First I would like to apologise my own lack on involvement in the project recently, I shouldn't of let the state of the module have no major development and I should of responded to these issues much sooner. The good news is that I am going to make a big push on getting as many fixes pushed out asap and possibly finish the major refactor I have been working on.

Onto the issue:

I have just install the latest version of express on my machine: [email protected] which is utilising [email protected] and I am seeing the same issue, I am currently working on a fix at this moment and will update this issue as soon as I have made the merge and the deployment.

Again I would like to apologise for my lack of response.

~tomgco

@glynnbird
Copy link

I too have the same issue.

@tomgco
Copy link
Owner

tomgco commented Oct 17, 2012

0.2 has been released, hopefully this fixes the incompatibility. Let me know if any problems occur. I will keep this open just in case.

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

10 participants