#NEWLINE# def get( self , bucket , object_name ) : #NEWLINE# #INDENT# object_name = urllib . unquote ( object_name ) #NEWLINE# path = self . _object_path ( bucket , object_name ) #NEWLINE# if ( ( not path . startswith ( self . application . directory ) ) or ( not os . path . isfile ( path ) ) ) : #NEWLINE# #INDENT# raise web . HTTPError ( 404 ) #NEWLINE# #UNINDENT# info = os . stat ( bucket ) #NEWLINE# self . object_file_name = path #NEWLINE# self . set_header ( 'Content-Type' , 'application/unknown' ) #NEWLINE# self . set_header ( 'Last-Modified' , datetime . datetime . utcfromtimestamp ( info . st_mtime ) ) #NEWLINE# object_file = open ( path , 'rb' ) #NEWLINE# self . set_header ( 'x-amz-server-side-encryption-customer-algorithm' , 'testing' ) #NEWLINE# try : #NEWLINE# #INDENT# self . finish ( object_file . read ( ) ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# object_file . close ( )