Commit 5101c9c
Fix recurse private-address handling in authorized fetch mode
Ensure -p/--allow-private-address is applied consistently in lookup mode,
including authorized-fetch paths.
In recurse mode, explicit root lookups now use the regular lookup/context
loaders (respecting command/config allowPrivateAddress), while recursive
follow-up fetches continue to use strict loaders that disallow private
addresses.
Also consume redirect response bodies in image download redirect handling to
avoid keeping redirect bodies alive across manual redirect hops.
Add regression tests for redirect-body cancellation in imagerenderer tests.
#608 (comment)
#608 (comment)
#608 (comment)
Co-Authored-By: Codex <codex@openai.com>1 parent ee934f5 commit 5101c9c
3 files changed
Lines changed: 96 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 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 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
600 | 603 | | |
601 | 604 | | |
602 | 605 | | |
| |||
671 | 674 | | |
672 | 675 | | |
673 | 676 | | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
674 | 681 | | |
| 682 | + | |
675 | 683 | | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
| 684 | + | |
| 685 | + | |
680 | 686 | | |
681 | 687 | | |
682 | 688 | | |
| |||
719 | 725 | | |
720 | 726 | | |
721 | 727 | | |
722 | | - | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
723 | 751 | | |
724 | 752 | | |
725 | 753 | | |
| |||
735 | 763 | | |
736 | 764 | | |
737 | 765 | | |
738 | | - | |
739 | | - | |
| 766 | + | |
| 767 | + | |
740 | 768 | | |
741 | 769 | | |
742 | 770 | | |
| |||
772 | 800 | | |
773 | 801 | | |
774 | 802 | | |
775 | | - | |
| 803 | + | |
776 | 804 | | |
777 | 805 | | |
778 | 806 | | |
| |||
0 commit comments