def update_headers(response, headers):
 if hasattr(headers, 'items'):
  headers = headers.items()
 for (name, value) in headers:
  if (name == 'etag'):
   response.headers[name] = value.replace('"', '')
  elif (name not in ('date', 'content-length', 'content-type', 'connection', 'x-put-timestamp', 'x-delete-after')):
   response.headers[name] = value

def update_headers ( response , headers ) : if hasattr ( headers , 'items' ) : headers = headers . items ( ) for ( name , value ) in headers : if ( name == 'etag' ) : response . headers [ name ] = value . replace ( '"' , '' ) elif ( name not in ( 'date' , 'content-length' , 'content-type' , 'connection' , 'x-put-timestamp' , 'x-delete-after' ) ) : response . headers [ name ] = value
set microversion headers if api_version is not null .