Skip to content

Commit

Permalink
Fix docs for rewrite options - 201 also handled (#1147)
Browse files Browse the repository at this point in the history
Updates options documentation for location rewrite to include 201 responses. See #1024
  • Loading branch information
smh authored and indexzero committed Aug 22, 2019
1 parent 569e2ac commit acdbec0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/http-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ function createProxyServer(options) {
* 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 >
* 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.
Expand Down

0 comments on commit acdbec0

Please sign in to comment.