From b5ff2dc4a2ae84f93dbb2c163c585becacf143d9 Mon Sep 17 00:00:00 2001 From: cathugger Date: Sat, 8 Dec 2018 20:59:46 +0000 Subject: [PATCH] srnd: fix multipart message parsing --- contrib/backends/srndv2/src/srnd/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/backends/srndv2/src/srnd/store.go b/contrib/backends/srndv2/src/srnd/store.go index b205a2d..8bd1c3d 100644 --- a/contrib/backends/srndv2/src/srnd/store.go +++ b/contrib/backends/srndv2/src/srnd/store.go @@ -632,7 +632,7 @@ func read_message_body(body io.Reader, hdr map[string][]string, store ArticleSto body = io.TeeReader(body, wr) } boundary, ok := params["boundary"] - if content_type == "multipart/mixed" && ok { + if strings.HasPrefix(media_type, "multipart/") && ok { partReader := multipart.NewReader(body, boundary) for { part, err := partReader.NextPart()