Send "type" as array for JSON requests
[shpub.git] / src / shpub / Request.php
index 32e25de04d290d42e6a94b408e728242b3afd87a..8262863d7ce3500c30b03d3edfdffb17a9d55f70 100644 (file)
@@ -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;