Skip to content

Commit dc57b48

Browse files
smhmcheshkov
authored andcommitted
Fix docs for rewrite options - 201 also handled (http-party#1147)
Updates options documentation for location rewrite to include 201 responses. See http-party#1024
1 parent f477a2c commit dc57b48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: lib/http-proxy.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ function createProxyServer(options) {
3737
* changeOrigin: <true/false, Default: false - changes the origin of the host header to the target URL>
3838
* preserveHeaderKeyCase: <true/false, Default: false - specify whether you want to keep letter case of response header key >
3939
* auth : Basic authentication i.e. 'user:password' to compute an Authorization header.
40-
* hostRewrite: rewrites the location hostname on (301/302/307/308) redirects, Default: null.
41-
* autoRewrite: rewrites the location host/port on (301/302/307/308) redirects based on requested host/port. Default: false.
42-
* protocolRewrite: rewrites the location protocol on (301/302/307/308) redirects to 'http' or 'https'. Default: null.
40+
* hostRewrite: rewrites the location hostname on (201/301/302/307/308) redirects, Default: null.
41+
* autoRewrite: rewrites the location host/port on (201/301/302/307/308) redirects based on requested host/port. Default: false.
42+
* protocolRewrite: rewrites the location protocol on (201/301/302/307/308) redirects to 'http' or 'https'. Default: null.
4343
* }
4444
*
4545
* NOTE: `options.ws` and `options.ssl` are optional.

0 commit comments

Comments
 (0)