diff options
author | Aaron Parecki <aaron@parecki.com> | 2017-08-17 09:12:41 -0700 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2017-08-17 09:12:41 -0700 |
commit | 3de5d9345721385b7a8cdc11c82feaeb8ff94f6c (patch) | |
tree | bf2998558dbeba76535ba37615183f4ea79aff05 /lib | |
parent | e590c95c9f21fab9ebf2ba2efd83cca79585cfca (diff) |
send accept json header
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helpers.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/helpers.php b/lib/helpers.php index f48c986..6098501 100644 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -136,6 +136,7 @@ function micropub_post($endpoint, $params, $access_token, $file_path = NULL, $js } if(!$file_path) { + $httpheaders[] = 'Accept: application/json'; if($json) { // $params['access_token'] = $access_token; $httpheaders[] = 'Content-type: application/json'; |