def check_header_match_180_or_later(header1, header2):
 header1 = header1.split(':')
 header2 = header2.split(':')
 for (e1, e2) in zip(header1, header2):
  if (e1.split(' ')[0] != e2.split(' ')[0]):
   return False
 return True

def check_header_match_180_or_later ( header1 , header2 ) : header1 = header1 . split ( ':' ) header2 = header2 . split ( ':' ) for ( e1 , e2 ) in zip ( header1 , header2 ) : if ( e1 . split ( ' ' ) [ 0 ] != e2 . split ( ' ' ) [ 0 ] ) : return False return True
confirm headers are compatible in casava 1 .