fix(client): don't send Content-Type header on GET requests

This commit is contained in:
stainless-app[bot] 2025-07-12 02:01:35 +00:00
parent 63b90c4351
commit 54b122ff18
3 changed files with 12 additions and 5 deletions

View file

@ -428,7 +428,7 @@ class TestOpencode:
def test_multipart_repeating_array(self, client: Opencode) -> None:
request = client._build_request(
FinalRequestOptions.construct(
method="get",
method="post",
url="/foo",
headers={"Content-Type": "multipart/form-data; boundary=6b7ba517decee4a450543ea6ae821c82"},
json_data={"array": ["foo", "bar"]},
@ -1203,7 +1203,7 @@ class TestAsyncOpencode:
def test_multipart_repeating_array(self, async_client: AsyncOpencode) -> None:
request = async_client._build_request(
FinalRequestOptions.construct(
method="get",
method="post",
url="/foo",
headers={"Content-Type": "multipart/form-data; boundary=6b7ba517decee4a450543ea6ae821c82"},
json_data={"array": ["foo", "bar"]},