#NEWLINE# def _loads_v2( self , request , data ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# cached = json . loads ( zlib . decompress ( data ) . decode ( 'utf8' ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# cached [ 'response' ] [ 'body' ] = _b64_decode_bytes ( cached [ 'response' ] [ 'body' ] ) #NEWLINE# cached [ 'response' ] [ 'headers' ] = dict ( ( ( _b64_decode_str ( k ) , _b64_decode_str ( v ) ) for ( k , v ) in cached [ 'response' ] [ 'headers' ] . items ( ) ) ) #NEWLINE# cached [ 'response' ] [ 'reason' ] = _b64_decode_str ( cached [ 'response' ] [ 'reason' ] ) #NEWLINE# cached [ 'vary' ] = dict ( ( ( _b64_decode_str ( k ) , ( _b64_decode_str ( request ) if ( v is not None ) else v ) ) for ( k , v ) in cached [ 'vary' ] . items ( ) ) ) #NEWLINE# return self . prepare_response ( request , cached )