Actually detect whether headers are sent.