Skip to content
Myr

deps: statuses@2.0.1

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

closes #4336

authored by 3imed-jaberi · committed by Douglas Christopher Wilson · parent 1df7576 · Browse files · 3 files+8 added−5 removed
This commit

State

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

Diff stats

3 files+8 added−5 removed

  • other:+8 added−5 removed

3 files+8 added−5 removed

modified:lib/response.js+4 added-4 removed
137 unmodified lines
138 }139140 deprecate('res.send(status): Use res.sendStatus(status) instead');141 this.statusCode = chunk;142 chunk = statuses[chunk]142 chunk = statuses.message[chunk]143 }144145 switch (typeof chunk) {146 // string defaulting to html
219 unmodified lines
366 * @public367 */368369res.sendStatus = function sendStatus(statusCode) {370 var body = statuses[statusCode] || String(statusCode)370 var body = statuses.message[statusCode] || String(statusCode)371372 this.statusCode = statusCode;373 this.type('txt');374
579 unmodified lines
954955 // Support text/{plain,html} by default956 this.format({957 text: function(){958 body = statuses[status] + '. Redirecting to ' + address958 body = statuses.message[status] + '. Redirecting to ' + address959 },960961 html: function(){962 var u = escapeHtml(address);963 body = '<p>' + statuses[status] + '. Redirecting to <a href="' + u + '">' + u + '</a></p>'963 body = '<p>' + statuses.message[status] + '. Redirecting to <a href="' + u + '">' + u + '</a></p>'964 },965966 default: function(){967 body = '';
202 unmodified lines
modified:History.md+3 added
35 unmodified lines
36 - deps: on-finished@2.4.137 - deps: statuses@2.0.138 * deps: serve-static@1.15.039 - deps: send@0.18.040 * deps: statuses@2.0.141 - Remove code 30642 - Rename `425 Unordered Collection` to standard `425 Too Early`43444.17.3 / 2022-02-1645===================46
3522 unmodified lines
modified:package.json+1 added-1 removed