This definitely doesn't return a callable - you should just pass the headers in when the function is called on line 226:

```
resp = post_fn(payload, self.url, headers=headers)
```

As far as I can tell the only other place this is called is in the tests: `corehq.apps.receiverwrapper.tests.test_repeater.RepeaterTest`