From 7bb384b92dd7c0eb17f4037f5db872dc8b817dd9 Mon Sep 17 00:00:00 2001 From: hmhealey Date: Thu, 24 Sep 2015 16:47:27 -0400 Subject: Added a json response to the uploadProfileImage api call --- api/user.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'api/user.go') diff --git a/api/user.go b/api/user.go index 3cce3cdd3..406f1985b 100644 --- a/api/user.go +++ b/api/user.go @@ -821,6 +821,9 @@ func uploadProfileImage(c *Context, w http.ResponseWriter, r *http.Request) { Srv.Store.User().UpdateLastPictureUpdate(c.Session.UserId) c.LogAudit("") + + // write something as the response since jQuery expects a json response + w.Write([]byte("true")) } func updateUser(c *Context, w http.ResponseWriter, r *http.Request) { -- cgit v1.2.3-1-g7c22