Skip to content

Commit edfff5e

Browse files
committed
304
1 parent 16c8950 commit edfff5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/notifications.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ func (api *API) putNotificationsSettings(rw http.ResponseWriter, r *http.Request
8989
}
9090

9191
if bytes.Equal(settingsJSON, []byte(currentSettingsJSON)) {
92-
// See: https://www.rfc-editor.org/rfc/rfc7231#section-6.3.5
93-
httpapi.Write(r.Context(), rw, http.StatusNoContent, nil)
92+
// See: https://www.rfc-editor.org/rfc/rfc7232#section-4.1
93+
httpapi.Write(r.Context(), rw, http.StatusNotModified, nil)
9494
return
9595
}
9696

0 commit comments

Comments
 (0)