Allow to pass additional headers to the export method, fixes issue #296