Browse Source

also send access token in POST

pull/10/head
Aaron Parecki 9 years ago
parent
commit
24757268e2
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lib/helpers.php

+ 2
- 1
lib/helpers.php View File

@ -88,7 +88,8 @@ function micropub_post($endpoint, $params, $access_token) {
'Authorization: Bearer ' . $access_token
));
curl_setopt($ch, CURLOPT_POST, true);
$post = http_build_query(array_merge(array(
$post = http_build_query(array_merge(array(,
'access_token' => $access_token,
'h' => 'entry'
), $params));
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);

Loading…
Cancel
Save