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

Reset status code for Koa (#677) #678

Closed
wants to merge 1 commit into from
Closed

Conversation

livoras
Copy link

@livoras livoras commented Jan 6, 2017

fixed #677

@@ -153,6 +153,7 @@ export async function serveStaticWithGzip (req, res, path) {
await serveStatic(req, res, gzipPath)
} catch (ex) {
if (ex.code === 'ENOENT') {
res.statusCode = 200
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a legit thing to do.
But, I am fixing the root cause here in #640
We'll take it pretty soon.

@rauchg rauchg added this to the 2.0 milestone Jan 10, 2017
@arunoda
Copy link
Contributor

arunoda commented Jan 11, 2017

We fixed the root cause of this issue with the PR: #704

@arunoda
Copy link
Contributor

arunoda commented Jan 11, 2017

I think we don't need this fix.

@arunoda arunoda closed this Jan 11, 2017
@arunoda
Copy link
Contributor

arunoda commented Jan 11, 2017

@livoras if the current master didn't fix your issue, let us know.

@aga5tya
Copy link
Contributor

aga5tya commented Jan 17, 2017

@livoras if the current master didn't fix your issue, let us know.

@arunoda, the issue still exists on the latest master.
zeit/next.js#677

@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants