Commit 980d881 authored and committed Apr 3, 2022
1 parent 1df7576 commit 980d881 Copy full SHA for 980d881
File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ unreleased
37
37
- deps: statuses@2.0.1
38
38
* deps: serve-static@1.15.0
39
39
- deps: send@0.18.0
40
+ * deps: statuses@2.0.1
41
+ - Remove code 306
42
+ - Rename ` 425 Unordered Collection ` to standard ` 425 Too Early `
40
43
41
44
4.17.3 / 2022-02-16
42
45
===================
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ res.send = function send(body) {
139
139
140
140
deprecate ( 'res.send(status): Use res.sendStatus(status) instead' ) ;
141
141
this . statusCode = chunk ;
142
- chunk = statuses [ chunk ]
142
+ chunk = statuses . message [ chunk ]
143
143
}
144
144
145
145
switch ( typeof chunk ) {
@@ -367,7 +367,7 @@ res.jsonp = function jsonp(obj) {
367
367
*/
368
368
369
369
res . sendStatus = function sendStatus ( statusCode ) {
370
- var body = statuses [ statusCode ] || String ( statusCode )
370
+ var body = statuses . message [ statusCode ] || String ( statusCode )
371
371
372
372
this . statusCode = statusCode ;
373
373
this . type ( 'txt' ) ;
@@ -955,12 +955,12 @@ res.redirect = function redirect(url) {
955
955
// Support text/{plain,html} by default
956
956
this . format ( {
957
957
text : function ( ) {
958
- body = statuses [ status ] + '. Redirecting to ' + address
958
+ body = statuses . message [ status ] + '. Redirecting to ' + address
959
959
} ,
960
960
961
961
html : function ( ) {
962
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
964
} ,
965
965
966
966
default : function ( ) {
Original file line number Diff line number Diff line change 55
55
"send" : " 0.18.0" ,
56
56
"serve-static" : " 1.15.0" ,
57
57
"setprototypeof" : " 1.2.0" ,
58
- "statuses" : " ~1.5.0 " ,
58
+ "statuses" : " 2.0.1 " ,
59
59
"type-is" : " ~1.6.18" ,
60
60
"utils-merge" : " 1.0.1" ,
61
61
"vary" : " ~1.1.2"
You can’t perform that action at this time.
0 commit comments