Support amazonlinux via http text/plain (#850)

This commit is contained in:
Masahiro Fujimura
2019-06-25 10:00:54 +09:00
committed by Teppei Fukuda
parent 4cf9a723fe
commit 4a34dfe0e9

View File

@@ -664,6 +664,10 @@ func ViaHTTP(header http.Header, body string) (models.ScanResult, error) {
osType = &centos{
redhatBase: redhatBase{base: base},
}
case config.Amazon:
osType = &amazon{
redhatBase: redhatBase{base: base},
}
default:
return models.ScanResult{}, xerrors.Errorf("Server mode for %s is not implemented yet", family)
}