fix(websocket): http: superfluous response.WriteHeader on websocket initiation failure

This commit is contained in:
yusing
2025-05-31 22:29:02 +08:00
parent 54bf84dcba
commit ecfd018b0b
3 changed files with 20 additions and 4 deletions

View File

@@ -19,7 +19,6 @@ func RenewCert(w http.ResponseWriter, r *http.Request) {
conn, err := gpwebsocket.Initiate(w, r)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
defer conn.Close()