Commit 8f9ca39
feat: support non-standard retry-after header formats (#713)
Add support for non-standard retry-after header formats used by
CivicPlus and other services that use "30s" or "1m30s" notation
instead of the standard seconds or HTTP date format.
Changes:
- Extract retry-after parsing logic into parseRetryAfter() method
- Add regex support for "Xs" and "XmYs" time formats
- Add tests for non-standard formats (3s, 1m1s)
- Fix missing redirect parameter in 405 and fallback GET requests
Closes #556
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <[email protected]>1 parent 27824d4 commit 8f9ca39
2 files changed
+68
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
| |||
321 | 322 | | |
322 | 323 | | |
323 | 324 | | |
| 325 | + | |
324 | 326 | | |
325 | 327 | | |
326 | 328 | | |
| |||
554 | 556 | | |
555 | 557 | | |
556 | 558 | | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
557 | 583 | | |
558 | 584 | | |
559 | 585 | | |
| |||
572 | 598 | | |
573 | 599 | | |
574 | 600 | | |
575 | | - | |
576 | | - | |
577 | | - | |
| 601 | + | |
578 | 602 | | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
| 603 | + | |
583 | 604 | | |
584 | 605 | | |
585 | 606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
102 | 142 | | |
103 | 143 | | |
104 | 144 | | |
| |||
0 commit comments