mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-04-07 11:07:01 +00:00
Added header
This commit is contained in:
parent
75614bf294
commit
1cdfc3c204
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ class RestClient
|
|||
$headers['Content-Type'] = 'multipart/form-data; boundary='.$body->getBoundary();
|
||||
} elseif (is_array($body)) {
|
||||
$body = http_build_query($body);
|
||||
$headers['Content-Type'] = 'application/x-www-form-urlencoded';
|
||||
}
|
||||
|
||||
$request = new Request($method, $this->getApiUrl($uri), $headers, $body);
|
||||
|
|
Loading…
Add table
Reference in a new issue