mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-27 11:31:06 +01:00
fix(websocket): http: superfluous response.WriteHeader on websocket initiation failure
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user