From 313e84422cbe8a873e3922e2bddebc2f875c756f Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 22 Mar 2017 11:46:42 -0700 Subject: [PATCH] Send "type" as array for JSON requests e.g. `{"type":["h-entry"], ... }` https://www.w3.org/TR/micropub/#json-syntax --- src/shpub/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shpub/Request.php b/src/shpub/Request.php index 32e25de..8262863 100644 --- a/src/shpub/Request.php +++ b/src/shpub/Request.php @@ -56,7 +56,7 @@ class Request $data['url'] = $this->url; } if ($this->type !== null) { - $data['type'] = 'h-' . $this->type; + $data['type'] = array('h-' . $this->type); } if (count($this->properties)) { $data['properties'] = $this->properties; -- 2.30.2