Merge pull request #166 from cathugger/master
srnd: fix multipart message parsing
This commit is contained in:
commit
7e56a9b9f5
@ -632,7 +632,7 @@ func read_message_body(body io.Reader, hdr map[string][]string, store ArticleSto
|
|||||||
body = io.TeeReader(body, wr)
|
body = io.TeeReader(body, wr)
|
||||||
}
|
}
|
||||||
boundary, ok := params["boundary"]
|
boundary, ok := params["boundary"]
|
||||||
if content_type == "multipart/mixed" && ok {
|
if strings.HasPrefix(media_type, "multipart/") && ok {
|
||||||
partReader := multipart.NewReader(body, boundary)
|
partReader := multipart.NewReader(body, boundary)
|
||||||
for {
|
for {
|
||||||
part, err := partReader.NextPart()
|
part, err := partReader.NextPart()
|
||||||
|
Reference in New Issue
Block a user