From f3cf8a9506618e08f80bb8476366604c7f2db0c1 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Tue, 8 Mar 2022 01:21:00 -0500 Subject: [PATCH] deps: statuses@2.0.1 --- HISTORY.md | 1 + index.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index d779d5d..f2b24ad 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -9,6 +9,7 @@ unreleased * deps: http-errors@2.0.0 - deps: depd@2.0.0 - deps: statuses@2.0.1 + * deps: statuses@2.0.1 0.17.2 / 2021-12-11 =================== diff --git a/index.js b/index.js index eba4a37..fbdecf3 100644 --- a/index.js +++ b/index.js @@ -271,7 +271,7 @@ SendStream.prototype.error = function error (status, err) { } var res = this.res - var msg = statuses[status] || String(status) + var msg = statuses.message[status] || String(status) var doc = createHtmlDocument('Error', escapeHtml(msg)) // clear existing headers diff --git a/package.json b/package.json index 8317cdb..03e1626 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "ms": "2.1.3", "on-finished": "~2.3.0", "range-parser": "~1.2.1", - "statuses": "~1.5.0" + "statuses": "2.0.1" }, "devDependencies": { "after": "0.8.2",