Commit ca9a428
authored
fix(utils): handle 1xx HTTP status codes in curl utils (#1540)
Update the curl utility to treat 1xx (informational) HTTP status codes,
such as 100 (Continue), as non-errors in both GET and POST requests.
Previously, only 2xx (success) codes were considered valid, which could
cause issues with streaming or intermediate responses. This change
improves compatibility with APIs that use informational status codes.
Closes #15081 parent aeb6ebb commit ca9a428
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
99 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| |||
0 commit comments