Marco Jantke
|
676b79db42
|
Fix raw path handling in strip prefix
|
2017-11-21 14:28:03 +01:00 |
|
Marco Jantke
|
fd70e6edb1
|
enable prefix matching within slash boundaries
|
2017-10-06 11:34:03 +02:00 |
|
Fernandez Ludovic
|
8235cd3645
|
refactor: minor changes.
|
2017-08-25 11:08:02 +02:00 |
|
Fernandez Ludovic
|
a1a0420314
|
test: use MustNewRequest.
|
2017-06-09 23:55:49 +02:00 |
|
Fernandez Ludovic
|
18d11e02d0
|
test: simplify stripPrefix* tests.
|
2017-06-09 23:55:49 +02:00 |
|
Fernandez Ludovic
|
b6c5c14447
|
refactor: Enhance rules tests.
- refactor: change incorrect package.
- refactor: test readability.
|
2017-05-31 10:34:00 +02:00 |
|
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 |
|