def prepare_content_length(self, body):
if body is not None:<EOL><INDENT>length = super_len(body)<EOL>if length:<EOL><INDENT>self.headers['<STR_LIT>'] = builtin_str(length)<EOL><DEDENT><DEDENT>elif self.method not in ('<STR_LIT:GET>', '<STR_LIT>') and self.headers.get('<STR_LIT>') is None:<EOL><INDENT>self.headers['<STR_LIT>'] = '<STR_LIT:0>'<EOL><DEDENT>
Prepare Content-Length header based on request method and body