-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
RoutingOcelot feature: RoutingOcelot feature: RoutingquestionInitially seen a question could become a new feature or bug or closed ;)Initially seen a question could become a new feature or bug or closed ;)
Description
The / is not being propagated downstream.
Expected Behavior
Using version Ocelot 22.x.x with the following setup:
{
"Routes": [
{
"DownstreamScheme": "http",
"UpstreamPathTemplate": "/api/v1/endpoint-slash",
"UpstreamHttpMethod": [
"Get"
],
"DownstreamPathTemplate": "/v1/endpoint-slash/",
"AuthenticationOptions": {
"AuthenticationProviderKey": "Jwt-IDM"
},
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8885
}
]
}
]
}We got the slash at the end of the downtream applied path:
Actual Behavior
Using version Ocelot 23.x.x with the following setup:
{
"Routes": [
{
"DownstreamScheme": "http",
"UpstreamPathTemplate": "/api/v1/endpoint-slash",
"UpstreamHttpMethod": [
"Get"
],
"DownstreamPathTemplate": "/v1/endpoint-slash/",
"AuthenticationOptions": {
"AuthenticationProviderKey": "Jwt-IDM"
},
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8885
}
]
}
]
}We didn't get the slash at the end of the downtream applied path:
Is that a problem or is that an expected behaviour?
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
RoutingOcelot feature: RoutingOcelot feature: RoutingquestionInitially seen a question could become a new feature or bug or closed ;)Initially seen a question could become a new feature or bug or closed ;)

