Skip to content

Conversation

@cloudnautique
Copy link
Contributor

Some apis don't require content in the request body. If that was the case the current implementation doesn't send a header or the empty body.

This change makes it so the empty json and string bodies and headers are sent.

note: need to discuss if there is a scenario for empty multipart form data.

Some apis don't require content in the request body. If that was
the case the current implementation doesn't send a header or the
empty body.

This change makes it so the empty json and string bodies and
headers are sent.

Still need to look at the multipart content.

Signed-off-by: Bill Maxwell <[email protected]>
@cloudnautique cloudnautique requested a review from g-linville May 8, 2024 15:49
@cloudnautique cloudnautique merged commit 20fc0e7 into gptscript-ai:main May 8, 2024
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.

2 participants