Forwarding request / on a gateway correctly sets the forwarded path to /sf-someguid/, but this line removes the last / hence the request path is not set in the middleware on the backend. This causes problems with e.g. UseDefaultFiles() which requires the path to be defined. What is the motivation behind setting remainingPathValue = string.Empty?
Forwarding request
/
on a gateway correctly sets the forwarded path to/sf-someguid/
, but this line removes the last/
hence the request path is not set in the middleware on the backend. This causes problems with e.g.UseDefaultFiles()
which requires the path to be defined. What is the motivation behind settingremainingPathValue = string.Empty
?