diff --git a/server/server.go b/server/server.go index 17ee3ea..dbf7efc 100644 --- a/server/server.go +++ b/server/server.go @@ -210,7 +210,7 @@ func apiRoutes() *mux.Router { func basicAuthResponse(w http.ResponseWriter) { w.Header().Set("WWW-Authenticate", `Basic realm="Login"`) w.WriteHeader(http.StatusUnauthorized) - _, _ = w.Write([]byte("Unauthorised.\n")) + _, _ = w.Write([]byte("Unauthorized.\n")) } // sendAPIAuthMiddleware handles authentication specifically for the send API endpoint diff --git a/server/websockets/client.go b/server/websockets/client.go index 4d44110..c56ecd1 100644 --- a/server/websockets/client.go +++ b/server/websockets/client.go @@ -147,5 +147,5 @@ func ServeWs(hub *Hub, w http.ResponseWriter, r *http.Request) { func basicAuthResponse(w http.ResponseWriter) { w.Header().Set("WWW-Authenticate", `Basic realm="Login"`) w.WriteHeader(http.StatusUnauthorized) - _, _ = w.Write([]byte("Unauthorised.\n")) + _, _ = w.Write([]byte("Unauthorized.\n")) }