//LookupContentType will lookup ContentType based on the file extension.
//This function will only check based on the name of the file and use the file extension.
LookupContentType will lookup ContentType based on the file extension.
This function will only check based on the name of the file and use the file extension.
// LookupContentType will lookup ContentType based on the file extension . // This function will only check based on the name of the file and use the file extension .
func LookupContentType(path string) string {
	if val, ok := KnownFileTypes[filepath.Ext(path)]; ok {
		return val
	}
	return "application/octet-stream"
}
func LookupContentType ( path string ) string { if val , ok := KnownFileTypes [ filepath . Ext ( path ) ] ; ok { return val } return " " }
LookupContentType will lookup ContentType based on the file extension.
LookupContentType will lookup ContentType based on the file extension .