We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f23f745 commit 52645c6Copy full SHA for 52645c6
gitdiff/patch_header.go
@@ -5,6 +5,7 @@ import (
5
"errors"
6
"fmt"
7
"io"
8
+ "io/ioutil"
9
"mime/quotedprintable"
10
"net/mail"
11
"strconv"
@@ -477,7 +478,7 @@ func decodeSubject(encoded string) string {
477
478
payload = strings.ReplaceAll(payload, " =?UTF-8?q?", "")
479
payload = strings.ReplaceAll(payload, "?=", "")
480
- decoded, err := io.ReadAll(quotedprintable.NewReader(strings.NewReader(payload)))
481
+ decoded, err := ioutil.ReadAll(quotedprintable.NewReader(strings.NewReader(payload)))
482
if err != nil {
483
// if err, abort decoding and return original subject
484
return encoded
0 commit comments