Skip to content
Myr

respond(204) should not have a body

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

authored by Aaron Heckmann · committed by Aaron Heckmann · parent ca782db · Browse files · 1 file+3 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+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:lib/express/request.js+3 added-1 removed
191 unmodified lines
192 this.status(code = code || 404)193 if (encoding instanceof Function)194 callback = encoding,195 encoding = null196 if (204 === code)197 body = null196 if (body !== null)198 else if (body !== null)199 body = body || statusBodies[code]200 if (encoding === 'utf8' ||201 encoding === 'utf-8')202 this.charset = 'UTF-8'
240 unmodified lines