From 0b0024db57d30e71824a0f12c656ff9aa1a24825 Mon Sep 17 00:00:00 2001 From: Stein Martin Hustad Date: Sat, 4 Mar 2017 11:09:38 +0100 Subject: [PATCH] Fix docs for rewrite options - 201 also handled Updates options documentation for location rewrite to include 201 responses. See #1024 --- lib/http-proxy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/http-proxy.js b/lib/http-proxy.js index 7dab7a48d..8ea278938 100644 --- a/lib/http-proxy.js +++ b/lib/http-proxy.js @@ -37,9 +37,9 @@ function createProxyServer(options) { * changeOrigin: * preserveHeaderKeyCase: * auth : Basic authentication i.e. 'user:password' to compute an Authorization header. - * hostRewrite: rewrites the location hostname on (301/302/307/308) redirects, Default: null. - * autoRewrite: rewrites the location host/port on (301/302/307/308) redirects based on requested host/port. Default: false. - * protocolRewrite: rewrites the location protocol on (301/302/307/308) redirects to 'http' or 'https'. Default: null. + * hostRewrite: rewrites the location hostname on (201/301/302/307/308) redirects, Default: null. + * autoRewrite: rewrites the location host/port on (201/301/302/307/308) redirects based on requested host/port. Default: false. + * protocolRewrite: rewrites the location protocol on (201/301/302/307/308) redirects to 'http' or 'https'. Default: null. * } * * NOTE: `options.ws` and `options.ssl` are optional.