Repository navigation
Commit 090ddbd
authored
Base64-encode "." and ".." in Pushgateway URL path segments (#1251)
A job or grouping key value of "." or ".." was put into the URL path
as is. These are dot segments: the Pushgateway router cleans the path
and answers with a 307 redirect to a different group (".." points at
the parent), so push_to_gateway, pushadd_to_gateway and
delete_from_gateway fail with "HTTP Error 307". Encode such values
with base64, as client_golang does.
Signed-off-by: sarankumar1325 <120080287+sarankumar1325@users.noreply.github.com>1 parent c3c6ed6 commit 090ddbd
2 files changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
825 | | - | |
| 825 | + | |
826 | 826 | | |
827 | | - | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
828 | 830 | | |
829 | 831 | | |
830 | 832 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
320 | 331 | | |
321 | 332 | | |
322 | 333 | | |
| |||
0 commit comments