Skip to content
Myr

Fixed; ignore body on 304. Closes #701

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

should do the trick

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 40ccb59 · Browse files · 1 file+1 added−1 removed
This commit

State

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

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/response.js+1 added-1 removed
104 unmodified lines
105 }106 }107108 // strip irrelevant headers109 if (204 == status) {109 if (204 == status || 304 == status) {110 this.removeHeader('Content-Type');111 this.removeHeader('Content-Length');112 }113
309 unmodified lines