Skip to content
Myr

Fixed 204 / 304 responses

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

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 376bedf · Browse files · 1 file+1 added−0 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−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:lib/response.js+1 added
78 unmodified lines
79 // strip irrelevant headers80 if (204 == status || 304 == status) {81 this.removeHeader('Content-Type');82 this.removeHeader('Content-Length');83 body = '';84 }8586 // respond87 this.statusCode = status;
321 unmodified lines