Support amazonlinux via http text/plain (#850)
This commit is contained in:
committed by
Teppei Fukuda
parent
4cf9a723fe
commit
4a34dfe0e9
@@ -664,6 +664,10 @@ func ViaHTTP(header http.Header, body string) (models.ScanResult, error) {
|
||||
osType = ¢os{
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user