Fix handling of --header.