Skip to content

Commit 4aa43d0

Browse files
committed
fix(local): logic correction in local check
Tests pass now also. :)
1 parent 2f78f1a commit 4aa43d0

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') || event.headers.Host.startsWith('127.0.0.1');
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)