Optimized parsing of headers; Fixed unit test for body-less content