fix HTTPInstaller not handling octet-stream media types

Signed-off-by: Stephen Bell <8148044+s7m4b4@users.noreply.github.com>
pull/11389/head
Stephen Bell 3 years ago
parent a48b87f32a
commit ca9435ef0d

@ -64,7 +64,7 @@ var Extractors = map[string]Extractor{
// This should be refactored in Helm 4, combined with the extension-based mechanism.
func mediaTypeToExtension(mt string) (string, bool) {
switch strings.ToLower(mt) {
case "application/gzip", "application/x-gzip", "application/x-tgz", "application/x-gtar":
case "application/gzip", "application/x-gzip", "application/x-tgz", "application/x-gtar", "application/octet-stream":
return ".tgz", true
default:
return "", false

Loading…
Cancel
Save