Fix custom headers

Sorry - I found a bug that I think is my fault! I think my recent tidy-up had a copy-and-paste error that broke custom header support. This PR fixes that (which I've tested by playing with the requestb.in API configured by default).

Sorry again!
Rowan