1
0
mirror of https://github.com/containous/traefik.git synced 2025-03-09 08:58:23 +03:00
traefik/middlewares
Josh Toft bc0121808a Fix behavior for PathPrefixStrip
When pushing data to downstream proxies; malformed requests were being
sent.

The corrected behavior is as follows:

| Route Stripped    |     URL                |  Passed to Backend |
| ----------------- | ---------------------- | ------------------ |
| /                 |     /                  |  /                 |

| Route Stripped    |     URL                |  Passed to Backend |
| ----------------- | ---------------------- | ------------------ |
| /stat             |     /stat              |  /                 |
| /stat             |     /stat/             |  /                 |
| /stat             |     /status            |  /status           |
| /stat             |     /stat/us           |  /us               |

| Route Stripped    |     URL                |  Passed to Backend |
| ----------------- | ---------------------- | ------------------ |
| /stat/            |     /stat              |  /stat             |
| /stat/            |     /stat/             |  /                 |
| /stat/            |     /status            |  /status           |
| /stat/            |     /stat/us           |  /us               |

Prior, we could strip the prefixing `/`, and we'd also ignore the case
where you want to serve something like `/api` as both the index and as a
subpath.

Additionally, this should resolve a myriad of issues relating to
kubernetes ingress `PathPrefixStrip`.
2017-05-24 10:50:12 +02:00
..
2016-12-19 17:12:52 +01:00
2016-06-23 16:33:54 +02:00
2016-12-30 19:04:02 +01:00
2017-05-19 15:49:02 +02:00
2017-01-17 18:14:13 +01:00
2017-04-11 22:36:55 +02:00
2017-04-11 22:36:55 +02:00
2017-05-15 09:17:33 +02:00
2017-05-15 09:17:33 +02:00
2017-04-26 23:33:32 -07:00
2017-05-15 09:17:33 +02:00
2016-12-30 19:04:02 +01:00
2016-06-07 09:17:39 +02:00
2017-05-15 09:17:33 +02:00
2017-04-28 17:33:14 +02:00