Fixed parseHeader() to be consistent with the behavior of parsePayload(). Parsing content should be slightly faster now.