Commits

Peter Sanchez committed 6edcdf6

Passed feed_url and hub_url to EasyConfig object

Comments (0)

Files changed (1)

djpubsubhubbub/__init__.py

     config = EasyConfig('djpubsubhubbub.Config', 'PUBSUBHUBBUB_CONFIG')
     
     def get_extra_hub_headers(self, feed_url, hub_url):
-        return self.config.get_object('get_extra_hub_headers', {})
+        return self.config.get_object(
+            'get_extra_hub_headers',
+            {},
+            *(feed_url, hub_url),
+        )
 
     def get_default_callback_host(self, feed_url, hub_url):
         return self.config.get_objects(
             'get_default_callback_host',
-            str(Site.objects.get_current())
+            str(Site.objects.get_current()),
+            *(feed_url, hub_url),
         )