diff --git a/src/p3k/WebSub/Client.php b/src/p3k/WebSub/Client.php index 4ae963b..c42868f 100644 --- a/src/p3k/WebSub/Client.php +++ b/src/p3k/WebSub/Client.php @@ -192,7 +192,7 @@ class Client { if(isset($options['secret'])) { $params['hub.secret'] = $options['secret']; } - $response = $this->http->post($hub, $params); + $response = $this->http->post($hub, http_build_query($params)); // TODO: Check for HTTP 307/308 and subscribe at the new location @@ -205,7 +205,7 @@ class Client { 'hub.topic' => $topic, 'hub.callback' => $callback, ]; - $response = $this->http->post($hub, $params); + $response = $this->http->post($hub, http_build_query($params)); // TODO: Check for HTTP 307/308 and unsubscribe at the new location