@@ 87,7 87,7 @@ class SubscriptionManager(models.Manager
try:
response = self._send_request(
- '{0}?hub.mode=status&hub.topic={1}'.format(hub, topic),
+ '{0}?hub.mode=status&hub.topic={1}'.format(hub, urlencode(topic)),
{},
headers,
debug,
@@ 104,7 104,7 @@ class SubscriptionManager(models.Manager
headers = config.get_extra_hub_headers(topic, hub)
response = self._send_request(
- '{0}?hub.mode=retrieve&hub.topic={1}'.format(hub, topic),
+ '{0}?hub.mode=retrieve&hub.topic={1}'.format(hub, urlencode(topic)),
{},
headers,
debug,