Skip to content

fix(utils): handle 1xx HTTP status codes in curl utils#1540

Merged
deathbeam merged 1 commit intoCopilotC-Nvim:mainfrom
deathbeam:fix-sdada
Mar 29, 2026
Merged

fix(utils): handle 1xx HTTP status codes in curl utils#1540
deathbeam merged 1 commit intoCopilotC-Nvim:mainfrom
deathbeam:fix-sdada

Conversation

@deathbeam
Copy link
Copy Markdown
Collaborator

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 #1508

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 CopilotC-Nvim#1508
@deathbeam deathbeam merged commit ca9a428 into CopilotC-Nvim:main Mar 29, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed to get response: 100

1 participant