Skip to content

Commit

Permalink
reorder presence detection write headers to remove superflous warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zackattack01 committed Jan 3, 2025
1 parent 888a2d0 commit b1e8315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/desktop/user/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ func (s *UserServer) detectPresence(w http.ResponseWriter, req *http.Request) {

// write response
w.Header().Set("Content-Type", "application/json")
w.Write(responseBytes)
w.WriteHeader(http.StatusOK)
w.Write(responseBytes)
}

func (s *UserServer) refreshHandler(w http.ResponseWriter, req *http.Request) {
Expand Down

0 comments on commit b1e8315

Please sign in to comment.