[fix] write connection header