git.cweiske.de
/
shpub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
912b607
)
Send "type" as array for JSON requests
author
Aaron Parecki
<
[email protected]
>
Wed, 22 Mar 2017 18:46:42 +0000
(11:46 -0700)
committer
Christian Weiske
<
[email protected]
>
Thu, 23 Mar 2017 06:41:06 +0000
(07:41 +0100)
e.g. `{"type":["h-entry"], ... }`
https://www.w3.org/TR/micropub/#json-syntax
src/shpub/Request.php
patch
|
blob
|
history
diff --git
a/src/shpub/Request.php
b/src/shpub/Request.php
index 32e25de04d290d42e6a94b408e728242b3afd87a..8262863d7ce3500c30b03d3edfdffb17a9d55f70 100644
(file)
--- 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;