From 043887cb01dff5bcc438d37ba1553cab76ce762c Mon Sep 17 00:00:00 2001 From: Philipp Erbelding Date: Wed, 22 Jun 2022 12:24:02 +0200 Subject: [PATCH] Allow application/x-pem-file content type This refers to PEM encoded files often used for certificates and related data. --- internal/provider/data_source.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/provider/data_source.go b/internal/provider/data_source.go index 75fc8508..68490ca5 100644 --- a/internal/provider/data_source.go +++ b/internal/provider/data_source.go @@ -152,6 +152,7 @@ func isContentTypeText(contentType string) bool { regexp.MustCompile("^text/.+"), regexp.MustCompile("^application/json$"), regexp.MustCompile(`^application/samlmetadata\+xml`), + regexp.MustCompile(`^application/x-pem-file$`), } for _, r := range allowedContentTypes {