From ca9435ef0d37e1bcfb6cf2140fe62ae315cf4718 Mon Sep 17 00:00:00 2001 From: Stephen Bell <8148044+s7m4b4@users.noreply.github.com> Date: Tue, 27 Sep 2022 11:00:30 +1000 Subject: [PATCH] fix HTTPInstaller not handling octet-stream media types Signed-off-by: Stephen Bell <8148044+s7m4b4@users.noreply.github.com> --- pkg/plugin/installer/http_installer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/plugin/installer/http_installer.go b/pkg/plugin/installer/http_installer.go index bcbcbde93..8f6f1e7bd 100644 --- a/pkg/plugin/installer/http_installer.go +++ b/pkg/plugin/installer/http_installer.go @@ -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