Commit aa41f5f
committed
Include SCRIPT_NAME when determining path
When determining the path for a request, `Rack::Request` prefixes the
`SCRIPT_NAME`, [as seen here][1]. This makes sure the relative path is
included. At work, we use [Iodine](https://github.com/boazsegev/iodine) and
Turbolinks, and without this patch most of our requests paths in Promethus are
`""`. This patch fixes that.
[1]: https://github.com/rack/rack/blob/294fd239a71aab805877790f0a92ee3c72e67d79/lib/rack/request.rb#L512
Signed-off-by: Ian Ker-Seymer <i.kerseymer@gmail.com>1 parent 872a8eb commit aa41f5f
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | | - | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
78 | | - | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
0 commit comments