Fix some requests being proxied incorrectly when root prefix is set
Remove the root prefix from request.path
before calculating the upstream path
request.path
includes the root prefix, so when it’s not empty, it needs to be stripped from request.path
before using it.