summaryrefslogtreecommitdiffstats
path: root/modules/private/mail.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private/mail.go')
-rw-r--r--modules/private/mail.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/private/mail.go b/modules/private/mail.go
index 4a5a3eedd7..7e229396e3 100644
--- a/modules/private/mail.go
+++ b/modules/private/mail.go
@@ -10,8 +10,8 @@ import (
"io/ioutil"
"net/http"
+ "code.gitea.io/gitea/modules/json"
"code.gitea.io/gitea/modules/setting"
- jsoniter "github.com/json-iterator/go"
)
// Email structure holds a data for sending general emails
@@ -33,7 +33,6 @@ func SendEmail(ctx context.Context, subject, message string, to []string) (int,
req := newInternalRequest(ctx, reqURL, "POST")
req = req.Header("Content-Type", "application/json")
- json := jsoniter.ConfigCompatibleWithStandardLibrary
jsonBytes, _ := json.Marshal(Email{
Subject: subject,
Message: message,