mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 05:43:09 -06:00
Update client-api-proxy and federation-api-proxy so they don't add /api to the path
This commit is contained in:
parent
d9a2f28230
commit
5199cb5cee
|
|
@ -75,7 +75,6 @@ func makeProxy(targetURL string) (*httputil.ReverseProxy, error) {
|
||||||
// Pratically this means that any distinction between '%2F' and '/'
|
// Pratically this means that any distinction between '%2F' and '/'
|
||||||
// in the URL will be lost by the time it reaches the target.
|
// in the URL will be lost by the time it reaches the target.
|
||||||
path := req.URL.Path
|
path := req.URL.Path
|
||||||
path = "api" + path
|
|
||||||
log.WithFields(log.Fields{
|
log.WithFields(log.Fields{
|
||||||
"path": path,
|
"path": path,
|
||||||
"url": targetURL,
|
"url": targetURL,
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,6 @@ func makeProxy(targetURL string) (*httputil.ReverseProxy, error) {
|
||||||
// Pratically this means that any distinction between '%2F' and '/'
|
// Pratically this means that any distinction between '%2F' and '/'
|
||||||
// in the URL will be lost by the time it reaches the target.
|
// in the URL will be lost by the time it reaches the target.
|
||||||
path := req.URL.Path
|
path := req.URL.Path
|
||||||
path = "api" + path
|
|
||||||
log.WithFields(log.Fields{
|
log.WithFields(log.Fields{
|
||||||
"path": path,
|
"path": path,
|
||||||
"url": targetURL,
|
"url": targetURL,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue