only use the custom headers if there are in fact custom headers.

BUG FIX!