set accept header

also headerSent => headersSent