+2
-1
gitdiff/patch_header.go
+2
-1
gitdiff/patch_header.go
···
5
5
"errors"
6
6
"fmt"
7
7
"io"
8
+
"io/ioutil"
8
9
"mime/quotedprintable"
9
10
"net/mail"
10
11
"strconv"
···
477
478
payload = strings.ReplaceAll(payload, " =?UTF-8?q?", "")
478
479
payload = strings.ReplaceAll(payload, "?=", "")
479
480
480
-
decoded, err := io.ReadAll(quotedprintable.NewReader(strings.NewReader(payload)))
481
+
decoded, err := ioutil.ReadAll(quotedprintable.NewReader(strings.NewReader(payload)))
481
482
if err != nil {
482
483
// if err, abort decoding and return original subject
483
484
return encoded