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
..
addPrefix.go Add Rule AddPrefix 2016-12-19 17:12:52 +01:00
authenticator.go Allow usersFile to be specified for basic or digest auth 2017-03-09 20:24:44 -05:00
authenticator_test.go Allow usersFile to be specified for basic or digest auth 2017-03-09 20:24:44 -05:00
cbreaker.go Fix bad circuit breaker expression 2016-06-23 16:33:54 +02:00
compress.go Import order as goimports does 2016-12-30 19:04:02 +01:00
handlerSwitcher.go Import order as goimports does 2016-12-30 19:04:02 +01:00
logger.go Create log folder if not present 2017-05-19 15:49:02 +02:00
logger_test.go Create log folder if not present 2017-05-19 15:49:02 +02:00
metrics.go Improving instrumentation. (#1042) 2017-01-17 18:14:13 +01:00
prometheus.go Fix metrics registering 2017-04-11 22:36:55 +02:00
prometheus_test.go Fix metrics registering 2017-04-11 22:36:55 +02:00
recover.go Add Recover tests 2017-05-15 09:17:33 +02:00
recover_test.go Add Recover tests 2017-05-15 09:17:33 +02:00
replace_path.go added path replacement rule 2017-04-26 23:33:32 -07:00
replace_path_test.go added path replacement rule 2017-04-26 23:33:32 -07:00
retry.go Fix stats responseRecorder Hijacker 2017-05-15 09:17:33 +02:00
rewrite.go Import order as goimports does 2016-12-30 19:04:02 +01:00
routes.go Add routes priorities 2016-06-07 09:17:39 +02:00
saveBackend.go Revert "First stage of access logging middleware. Initially without any output appenders." 2017-05-03 17:30:31 +02:00
stateful.go Fix stats responseRecorder Hijacker 2017-05-15 09:17:33 +02:00
stats.go Fix stats responseRecorder Hijacker 2017-05-15 09:17:33 +02:00
stripPrefix.go Fix behavior for PathPrefixStrip 2017-05-24 10:50:12 +02:00
stripPrefix_test.go Fix behavior for PathPrefixStrip 2017-05-24 10:50:12 +02:00
stripPrefixRegex.go Fix regex with PathStrip 2017-04-28 17:33:14 +02:00
stripPrefixRegex_test.go Fix regex with PathStrip 2017-04-28 17:33:14 +02:00