Commit 7527c64
authored
Fix delete manifest infinite loop (#93)
When there are many references in the R2 registry, the delete manifest endpoint responds with a 400 request and a cursor.
The `list` call uses `startAfter` which is meant for filenames instead of the `cursor` which makes the `list` call return the same data on each call, despite of what's set in the `last` query parameter.
This leads a caller following the `Link` call without checking whether the URL is the same as before to run into an infinite loop.1 parent 136562c commit 7527c64
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
0 commit comments