Skip to content

Commit df88bbe

Browse files
ThavarshanCopilot
andauthored
Update src/Fetch/Concerns/ConfiguresRequests.php
Co-authored-by: Copilot <[email protected]>
1 parent e300ec0 commit df88bbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Fetch/Concerns/ConfiguresRequests.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ public function withBody(array|string $body, string|ContentType $contentType = C
197197
$this->withMultipart($body);
198198
// Ensure no conflicting body option
199199
unset($this->options['body']);
200+
unset($this->options['json']);
201+
unset($this->options['form_params']);
200202
} else {
201203
// For any other content type, serialize the array to JSON in body
202204
$this->options['body'] = json_encode($body);

0 commit comments

Comments
 (0)