mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: use httapi.Write instead of render (#980)
This commit is contained in:
+1
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user