#NEWLINE# def GET( self ) : #NEWLINE# #INDENT# '\n        GET handler on Proxy\n        ' #NEWLINE# if self . is_range_request : #NEWLINE# #INDENT# raise HTTPBadRequest ( 'Storlet execution with range header is not supported' , request = original_resp . request ) #NEWLINE# #UNINDENT# self . gateway . authorizeStorletExecution ( self . request ) #NEWLINE# self . gateway . augmentStorletRequest ( self . request ) #NEWLINE# if self . is_storlet_range_request : #NEWLINE# #INDENT# self . request . headers [ 'Range' ] = self . request . headers [ 'X-Storlet-Range' ] #NEWLINE# #UNINDENT# original_resp = self . request . get_response ( self . app ) #NEWLINE# if original_resp . is_success : #NEWLINE# #INDENT# if self . is_proxy_runnable ( original_resp ) : #NEWLINE# #INDENT# return self . apply_storlet ( original_resp ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'Transfer-Encoding' in original_resp . headers ) : #NEWLINE# #INDENT# original_resp . headers . pop ( 'Transfer-Encoding' ) #NEWLINE# #UNINDENT# original_resp . headers [ 'Content-Length' ] = None #NEWLINE# return original_resp #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return original_resp