build: bump github.com/gin-gonic/gin from 1.9.1 to 1.10.0

Also update YAML MIME type.
This commit is contained in:
dependabot[bot]
2024-05-20 21:40:19 +00:00
committed by Vincent Bernat
parent fcb3c9f1e1
commit 17d9a6b6de
5 changed files with 53 additions and 48 deletions

View File

@@ -56,7 +56,7 @@ func (c ConfigRelatedOptions) Parse(out io.Writer, component string, config inte
defer resp.Body.Close()
contentType := resp.Header.Get("Content-Type")
mediaType, _, err := mime.ParseMediaType(contentType)
if mediaType != "application/x-yaml" || err != nil {
if (mediaType != "application/x-yaml" && mediaType != "application/yaml") || err != nil {
return fmt.Errorf("received configuration file is not YAML (%s)", contentType)
}
input, err := io.ReadAll(resp.Body)