Wrote header before stream