We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e2cd6c + 5ec69c5 commit 32a0ca0Copy full SHA for 32a0ca0
src/WhatsApp.php
@@ -31,7 +31,7 @@ private function request()
31
curl_setopt($ch, CURLOPT_URL, $this->server . $this->parth);
32
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
33
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $this->method);
34
- if ($this->method === 'POST') {
+ if ($this->method === 'POST' || $this->method === 'PUT') {
35
curl_setopt($ch, CURLOPT_POST, true);
36
curl_setopt($ch, CURLOPT_POSTFIELDS, $this->body);
37
}
0 commit comments