mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-22 20:46:03 +03:00
Added header
This commit is contained in:
parent
75614bf294
commit
1cdfc3c204
@ -83,6 +83,7 @@ class RestClient
|
|||||||
$headers['Content-Type'] = 'multipart/form-data; boundary='.$body->getBoundary();
|
$headers['Content-Type'] = 'multipart/form-data; boundary='.$body->getBoundary();
|
||||||
} elseif (is_array($body)) {
|
} elseif (is_array($body)) {
|
||||||
$body = http_build_query($body);
|
$body = http_build_query($body);
|
||||||
|
$headers['Content-Type'] = 'application/x-www-form-urlencoded';
|
||||||
}
|
}
|
||||||
|
|
||||||
$request = new Request($method, $this->getApiUrl($uri), $headers, $body);
|
$request = new Request($method, $this->getApiUrl($uri), $headers, $body);
|
||||||
|
Loading…
Reference in New Issue
Block a user