summaryrefslogtreecommitdiffstats
path: root/services/webhook/msteams.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/webhook/msteams.go')
-rw-r--r--services/webhook/msteams.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/webhook/msteams.go b/services/webhook/msteams.go
index a68c97ea37..dc83a47c8d 100644
--- a/services/webhook/msteams.go
+++ b/services/webhook/msteams.go
@@ -5,13 +5,13 @@
package webhook
import (
- "encoding/json"
"fmt"
"strings"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/git"
api "code.gitea.io/gitea/modules/structs"
+ jsoniter "github.com/json-iterator/go"
)
type (
@@ -60,6 +60,7 @@ func (m *MSTeamsPayload) SetSecret(_ string) {}
// JSONPayload Marshals the MSTeamsPayload to json
func (m *MSTeamsPayload) JSONPayload() ([]byte, error) {
+ json := jsoniter.ConfigCompatibleWithStandardLibrary
data, err := json.MarshalIndent(m, "", " ")
if err != nil {
return []byte{}, err