Files
reproxy/app/proxy
Alexey Nesterov 2e8733b152 Correctly handle URL escaped paths
Consider proxy configuration `*,/test/(.*),https://dest/$1`.

When reproxy accepts a request with URL encoded path, i.e.
'/test/a%205%25%20b/' which the encoded form of '/test/a 5% b',
it is using request.URL.Path which is already URL decoded by Golang.

This causes an error in proxy.go while it is trying to validate the
destination with `url.Parse(match.Destination)` as, strictly speaking,
destination URL is not a valid URL anymore, it is `https://target-dest/a 5% b`.

With this fix, the original escaped URL stays as is, correctly passes
the validation and then it is up to destination server to URL decode and
correctly handle the URL.
2021-12-06 11:00:07 -06:00
..
2021-04-30 04:03:36 -05:00
2021-04-30 04:03:36 -05:00
2021-04-30 04:03:36 -05:00
2021-06-01 02:56:39 -05:00
2021-12-06 11:00:07 -06:00
2021-05-04 12:51:07 -05:00