diff --git a/gitdiff/patch_header.go b/gitdiff/patch_header.go index c3c387d..f2c3868 100644 --- a/gitdiff/patch_header.go +++ b/gitdiff/patch_header.go @@ -5,6 +5,7 @@ import ( "errors" "fmt" "io" + "io/ioutil" "mime/quotedprintable" "net/mail" "strconv" @@ -477,7 +478,7 @@ func decodeSubject(encoded string) string { payload = strings.ReplaceAll(payload, " =?UTF-8?q?", "") payload = strings.ReplaceAll(payload, "?=", "") - decoded, err := io.ReadAll(quotedprintable.NewReader(strings.NewReader(payload))) + decoded, err := ioutil.ReadAll(quotedprintable.NewReader(strings.NewReader(payload))) if err != nil { // if err, abort decoding and return original subject return encoded