Only record headers if they are explicitly given