Skip to content

Commit

Permalink
Undefined array key "Content-Type"
Browse files Browse the repository at this point in the history
  • Loading branch information
z985342160 committed Aug 19, 2024
1 parent 465f45c commit ac66020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RequestBuilderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function getRequest(): RequestInterface
$this->beforeBuildRequest();

// Need to be removed, generated by Guzzle
if ('multipart/form-data' === $this->headers['Content-Type']) {
if (isset($this->headers['Content-Type']) && 'multipart/form-data' === $this->headers['Content-Type']) {
unset($this->headers['Content-Type']);
}

Expand Down

0 comments on commit ac66020

Please sign in to comment.