We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bc734a commit 6fbc269Copy full SHA for 6fbc269
History.md
@@ -4,6 +4,7 @@ unreleased
4
* deps: accepts@~1.3.8
5
- deps: mime-types@~2.1.34
6
- deps: negotiator@0.6.3
7
+ * pref: remove unnecessary regexp for trust proxy
8
9
4.17.2 / 2021-12-16
10
===================
lib/utils.js
@@ -228,7 +228,8 @@ exports.compileTrust = function(val) {
228
229
if (typeof val === 'string') {
230
// Support comma-separated values
231
- val = val.split(/ *, */);
+ val = val.split(',')
232
+ .map(function (v) { return v.trim() })
233
}
234
235
return proxyaddr.compile(val || []);
0 commit comments