Added option to override and use some extra http headers.