From 005b1f0e6834016b0dcafb365f0ec705c742e0c9 Mon Sep 17 00:00:00 2001 From: Muhammad Faizan Uddin Date: Tue, 23 Mar 2021 14:06:23 +0400 Subject: [PATCH] fixed #31 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d2f9baf..7d40781 100644 --- a/index.js +++ b/index.js @@ -37,7 +37,7 @@ Caseless.prototype.get = function (name) { Caseless.prototype.swap = function (name) { var has = this.has(name) if (has === name) return - if (!has) throw new Error('There is no header than matches "'+name+'"') + if (!has) throw new Error('There is no header that matches "'+name+'"') this.dict[name] = this.dict[has] delete this.dict[has] }