Skip to content

Commit 0c75b92

Browse files
authored
Merge pull request spring-media#23 from jguice/master
fix(local): treat 127.0.0.1 as local also
2 parents 4f31cb7 + 4aa43d0 commit 0c75b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/proxyIntegration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function extractPathNames(pathExpression) {
196196
function isLocalExecution(event) {
197197
return event.headers
198198
&& event.headers.Host
199-
&& event.headers.Host.startsWith('localhost');
199+
&& (event.headers.Host.startsWith('localhost') || event.headers.Host.startsWith('127.0.0.1'));
200200
}
201201

202202
module.exports = process;

0 commit comments

Comments
 (0)