From 52271ff9f88e1fe65e379739765eb607fc678548 Mon Sep 17 00:00:00 2001 From: Bruno Quaresma Date: Tue, 12 Apr 2022 13:29:07 -0300 Subject: [PATCH] fix: use httapi.Write instead of render (#980) --- coderd/users.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/coderd/users.go b/coderd/users.go index d2b3395bbe..6fcab08140 100644 --- a/coderd/users.go +++ b/coderd/users.go @@ -327,8 +327,7 @@ func (api *api) putUserProfile(rw http.ResponseWriter, r *http.Request) { return } - render.Status(r, http.StatusOK) - render.JSON(rw, r, convertUser(updatedUserProfile)) + httpapi.Write(rw, http.StatusOK, convertUser(updatedUserProfile)) } // Returns organizations the parameterized user has access to.