summaryrefslogtreecommitdiffstats
path: root/api4/team.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/team.go')
-rw-r--r--api4/team.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/api4/team.go b/api4/team.go
index adb8ae355..6fbc537e9 100644
--- a/api4/team.go
+++ b/api4/team.go
@@ -7,6 +7,8 @@ import (
"bytes"
"encoding/base64"
"fmt"
+ "io"
+ "io/ioutil"
"net/http"
"strconv"
@@ -796,6 +798,8 @@ func getTeamIcon(c *Context, w http.ResponseWriter, r *http.Request) {
}
func setTeamIcon(c *Context, w http.ResponseWriter, r *http.Request) {
+ defer io.Copy(ioutil.Discard, r.Body)
+
c.RequireTeamId()
if c.Err != nil {
return