Skip to content

Commit f54c6a4

Browse files
authored
Merge pull request #75 from stefanoborini/fix-x-forward
Fixes incorrect inversion of xForward.
2 parents 3ba7021 + 7fa855d commit f54c6a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/configurable-http-proxy

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ if (options.error_target && options.error_path) {
180180

181181
// passthrough for http-proxy options
182182
if (args.insecure) options.secure = false;
183-
options.xfwd = args.xForward ? false : true;
183+
options.xfwd = args.xForward;
184184
options.prependPath = args.prependPath;
185185
options.includePrefix = args.includePrefix;
186186
if (args.autoRewrite) {

0 commit comments

Comments
 (0)