summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/helpers.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helpers.php b/lib/helpers.php
index 198534f..f48c986 100644
--- a/lib/helpers.php
+++ b/lib/helpers.php
@@ -151,7 +151,7 @@ function micropub_post($endpoint, $params, $access_token, $file_path = NULL, $js
$multipart->addArray($params);
$multipart->addFile($file_prop, $file_path, $mimetype);
$post = $multipart->data();
- array_push($httpheaders, 'Content-Type: ' . $multipart->contentType());
+ $httpheaders[] = 'Content-Type: ' . $multipart->contentType();
}
curl_setopt($ch, CURLOPT_HTTPHEADER, $httpheaders);