git.cweiske.de
/
shpub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Send "type" as array for JSON requests
[shpub.git]
/
src
/
shpub
/
Request.php
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;