function identify (name, chunk) {
  // try to identify the type by the chunk contents
  var mimeType
  var identifiedExt = (chunk) ? identifyFiletype(chunk) : false
  if (identifiedExt === 'html') identifiedExt = false // HACK- never let HTML be determined by file content -prf
  if (identifiedExt) { mimeType = mime.lookup(identifiedExt, 'text/plain') }
  if (!mimeType) {
    // fallback to using the entry name
    if (name.endsWith('.goto')) {
      mimeType = 'application/goto' // this one's a little new
    } else {
      mimeType = mime.lookup(name, 'text/plain')
    }
  }
  mimeType = correctSomeMimeTypes(mimeType, name)

  // hackish fix
  // the svg test can be a bit aggressive: html pages with
  // inline svgs can be falsely interpretted as svgs
  // double check that
  if (identifiedExt === 'svg' && mime.lookup(name) === 'text/html') {
    return 'text/html; charset=utf8'
  }

  // assume utf-8 for text types
  if (TEXT_TYPE_RE.test(mimeType)) {
    mimeType += '; charset=utf8'
  }

  return mimeType
}
@param {string} name
@param {Buffer} [chunk]
@returns {string}