def do_HEADERS(self):
headers = []<EOL>for header in self.headers:<EOL><INDENT>headers.append("<STR_LIT>" % (header, self.headers[header]))<EOL><DEDENT>content_length = int(self.headers.get('<STR_LIT>', <NUM_LIT:0>))<EOL>body = self.rfile.read(content_length)<EOL>parts, = body.split('<STR_LIT>')<EOL>_headers = self.MessageClass(StringIO(parts))<EOL>self.wfile.write("<STR_LIT>")<EOL>self.wfile.write("<STR_LIT>")<EOL>if self.request_version >= (<NUM_LIT:1>, <NUM_LIT:3>):<EOL><INDENT>self.wfile.write("<STR_LIT>" % len(_headers))<EOL><DEDENT>self.wfile.write("<STR_LIT>")<EOL>self.wfile.write(_headers)<EOL>self.close_connection = <NUM_LIT:1><EOL>
Emulate HEADERS