Skip to content
This repository was archived by the owner on May 18, 2020. It is now read-only.

Commit 475f2f4

Browse files
committed
Bug fix: missed api key in headers
1 parent 396f98c commit 475f2f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Wrapper/Mailin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ private function do_request($resource, $method, $input)
3939
CURLOPT_CUSTOMREQUEST => $method,
4040
CURLOPT_FOLLOWLOCATION => true,
4141
CURLOPT_HTTPHEADER => array(
42-
'api-key' => $this->api_key,
43-
'Content-Type' => 'application/json',
42+
'api-key: '. $this->api_key,
43+
'Content-Type: application/json',
4444
),
4545
CURLOPT_POSTFIELDS => $input,
4646
CURLOPT_RETURNTRANSFER => true,

0 commit comments

Comments
 (0)