fixed mime type matching

+review CR-NS-192