Skip to content

Commit

Permalink
Merge pull request #158 from Alex-query/master
Browse files Browse the repository at this point in the history
Update CurlerRequest.php
  • Loading branch information
isublimity committed Apr 20, 2022
2 parents be18663 + 75543fe commit f721f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transport/CurlerRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ private function prepareRequest()
$curl_opt[CURLOPT_POSTFIELDS] = $this->parameters;

if (!is_array($this->parameters)) {
$this->header('Content-Length', strlen($this->parameters));
$this->header('Content-Length', mb_strlen($this->parameters, '8bit'));
}
}
}
Expand Down

0 comments on commit f721f33

Please sign in to comment.