Support encoded path in router (#1347)
Encoded path means the URL path contains encoded string like "/foo%2Fbar". Gorilla/Mux by default doesn't enable encoded path support, you need to enable it when initializing the router. This PR adds a new environment variable USE_ENCODED_PATH to the router deployment to enable encoded path support.
This commit is contained in:
@@ -69,6 +69,7 @@ Parameter | Description | Default
|
||||
`router.svcAddressMaxRetries` | Max retries times for router to retry on a certain service URL returns from cache/executor | `5`
|
||||
`router.svcAddressUpdateTimeout` | The length of update lock expiry time for router to get a service URL returns from executor | `30`
|
||||
`router.svcAnnotations` | Annotations for router service | None
|
||||
`router.useEncodedPath` | For router to match encoded path. If true, "/foo%2Fbar" will match the path "/{var}"; Otherwise, it will match the path "/foo/bar". | `false`
|
||||
`router.roundTrip.disableKeepAlive` | Disable transport keep-alive for fast switching function version | `true`
|
||||
`router.roundTrip.keepAliveTime` | The keep-alive period for an active network connection to function pod | `30s`
|
||||
`router.roundTrip.timeout` | HTTP transport request timeout | `50ms`
|
||||
|
||||
Reference in New Issue
Block a user