Skip to content

Commit

Permalink
Fix for PATCH method with JSON body
Browse files Browse the repository at this point in the history
  • Loading branch information
shevabam committed Oct 11, 2022
1 parent a3eeccf commit acd7030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private function _doCurl($url)

$opts[CURLOPT_HTTPHEADER] = $headers;

if ($this->httpMethod == 'POST')
if ($this->httpMethod == 'POST' || $this->httpMethod == 'PATCH')
{
// If it is a file that is transmitted (starts with @)
if (!is_array($this->datas) && strpos($this->datas, '@') === 0)
Expand Down

0 comments on commit acd7030

Please sign in to comment.