def get_content_length(environ):
<EOL>try:<EOL><INDENT>return max(<NUM_LIT:0>, int(environ.get("<STR_LIT>", <NUM_LIT:0>)))<EOL><DEDENT>except ValueError:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>
Return a positive CONTENT_LENGTH in a safe way (return 0 otherwise).