Skip to content
Myr

Fix res.send double-calling res.end for HEAD requests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fixes #2467

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 656e214 · Browse files · 2 files+9 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+9 added−4 removed

  • other:+9 added−4 removed

2 files+9 added−4 removed

modified:lib/response.js+4 added-4 removed
180 unmodified lines
181 this.removeHeader('Transfer-Encoding');182 chunk = '';183 }184185 // skip body for HEAD185 if (isHead) {186 // skip body for HEAD187 this.end();188 } else {189 // respond190 this.end(chunk, encoding);191 }192190 // respond191 this.end(chunk, encoding);192193 return this;194};195196/**
775 unmodified lines
modified:History.md+5 added
1unreleased2==========34 * Fix `res.send` double-calling `res.end` for `HEAD` requests564.10.4 / 2014-11-247===================89 * Fix `res.sendfile` logging standard write errors
2493 unmodified lines