#NEWLINE# def doGetOrHead( self , handler , path , write_content ) : #NEWLINE# #INDENT# response = get_template ( response ) #NEWLINE# if minisix . PY3 : #NEWLINE# #INDENT# response = response . encode ( ) #NEWLINE# #UNINDENT# handler . send_response ( 200 ) #NEWLINE# self . send_header ( 'Content-type' , self . _mimetype ) #NEWLINE# self . send_header ( 'Content-Length' , len ( response ) ) #NEWLINE# self . end_headers ( ) #NEWLINE# if write_content : #NEWLINE# #INDENT# self . wfile . write ( response )