Commit 2e8ffc6
Keep credentials on same-host absolute redirects of the compact index
`uri + location` drops the userinfo when Location is an absolute URL, so
a private index redirecting to another path on the same host lost the
credentials and the follow-up request failed authentication. Bundler's
downloader already re-applies them; cross-host redirects still drop them.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>1 parent 96bcc78 commit 2e8ffc6
2 files changed
Lines changed: 14 additions & 0 deletions
File tree
- lib/rubygems/compact_index_client
- test/rubygems
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
233 | 244 | | |
234 | 245 | | |
235 | 246 | | |
| |||
0 commit comments