Skip to content

use res.end: reverting #27 #59

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

Merged
merged 2 commits into from
Jan 22, 2016
Merged

use res.end: reverting #27 #59

merged 2 commits into from
Jan 22, 2016

Conversation

hzoo
Copy link
Contributor

@hzoo hzoo commented Jan 22, 2016

Revert's #27

Assuming #58 is correct, I'm just adding a PR to revert.

Otherwise feel free to ignore/close.

@@ -186,7 +186,7 @@ module.exports = function(compiler, options) {
res.setHeader(name, options.headers[name]);
}
}
res.send(content);
res.end(content);

Choose a reason for hiding this comment

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

What about a guard that defaults to the original implementation when Express isn't used (karma-webpack as an example)?

if (res.send) res.send(content);
else res.end(content);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that could work as well if we want

Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated with another commit (let me know if you need me to squash instead)

sokra added a commit that referenced this pull request Jan 22, 2016
@sokra sokra merged commit a374161 into webpack:master Jan 22, 2016
@sokra
Copy link
Member

sokra commented Jan 22, 2016

Thanks

@hzoo
Copy link
Contributor Author

hzoo commented Jan 23, 2016

Thanks for merging and your work on webpack!

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

Successfully merging this pull request may close these issues.

3 participants