mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Fix docs for rewrite options - 201 also handled (#1147)
Updates options documentation for location rewrite to include 201 responses. See #1024
This commit is contained in:
parent
569e2ac4fb
commit
acdbec09c6
@ -37,9 +37,9 @@ function createProxyServer(options) {
|
|||||||
* changeOrigin: <true/false, Default: false - changes the origin of the host header to the target URL>
|
* changeOrigin: <true/false, Default: false - changes the origin of the host header to the target URL>
|
||||||
* preserveHeaderKeyCase: <true/false, Default: false - specify whether you want to keep letter case of response header key >
|
* preserveHeaderKeyCase: <true/false, Default: false - specify whether you want to keep letter case of response header key >
|
||||||
* auth : Basic authentication i.e. 'user:password' to compute an Authorization header.
|
* 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.
|
* hostRewrite: rewrites the location hostname on (201/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.
|
* 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 (301/302/307/308) redirects to 'http' or 'https'. Default: null.
|
* 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.
|
* NOTE: `options.ws` and `options.ssl` are optional.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user