Allow removing trailing slashes (#1100)
This commit is contained in:
committed by
GitHub
parent
b56dc8dbf4
commit
0f55e2d303
@@ -288,7 +288,12 @@ public class CustomConfiguration {
|
||||
}
|
||||
----
|
||||
|
||||
TIP: By default, Feign clients do not encode slash `/` characters. You can change this behaviour, by setting the value of `spring.cloud.openfeign.client.decodeSlash` to `false`.
|
||||
TIP: By default, Feign clients do not encode slash `/` characters. You can change this behaviour, by setting the value of `spring.cloud.openfeign.client.decode-slash` to `false`.
|
||||
|
||||
|
||||
TIP: By default, Feign clients do not remove trailing slash `/` characters from the request path.
|
||||
You can change this behaviour, by setting the value of `spring.cloud.openfeign.client.remove-trailing-slash` to `true`.
|
||||
Trailing slash removal from the request path is going to be made the default behaviour in the next major release.
|
||||
|
||||
[[springencoder-configuration]]
|
||||
==== `SpringEncoder` configuration
|
||||
|
||||
@@ -73,6 +73,7 @@
|
||||
|spring.cloud.openfeign.client.default-config | `+++default+++` |
|
||||
|spring.cloud.openfeign.client.default-to-properties | `+++true+++` |
|
||||
|spring.cloud.openfeign.client.refresh-enabled | `+++false+++` | Enables options value refresh capability for Feign.
|
||||
|spring.cloud.openfeign.client.remove-trailing-slash | `+++false+++` | If {@code true}, trailing slashes at the end of request urls will be removed.
|
||||
|spring.cloud.openfeign.compression.request.content-encoding-types | | The list of content encodings (applicable encodings depend on the used client).
|
||||
|spring.cloud.openfeign.compression.request.enabled | `+++false+++` | Enables the request sent by Feign to be compressed.
|
||||
|spring.cloud.openfeign.compression.request.mime-types | `+++[text/xml, application/xml, application/json]+++` | The list of supported mime types.
|
||||
|
||||
Reference in New Issue
Block a user