Browse Source

send post body as form-encoded

master 0.0.1
Aaron Parecki 7 years ago
parent
commit
3e37fbb3e8
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/p3k/WebSub/Client.php

+ 2
- 2
src/p3k/WebSub/Client.php View File

@ -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

Loading…
Cancel
Save