Added code to support custom headers in dc-query