def _parse_headers(headers):
try:<EOL><INDENT>return dict(line.rstrip().split("<STR_LIT>", <NUM_LIT:1>)<EOL>for line in headers.splitlines()<EOL>if line<EOL>)<EOL><DEDENT>except (TypeError, ValueError) as exc:<EOL><INDENT>raise SCGIException("<STR_LIT>" % (headers, exc,))<EOL><DEDENT>
Get headers dict from header string.