mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-30 00:21:16 +00:00
[editor] Fix: Upgrade contains a header send, error must not send headers
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8cfd22c916
commit
0d9536ee3f
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ func configEditorGlobalGetUser(w http.ResponseWriter, r *http.Request) {
|
|||
func configEditorGlobalSubscribe(w http.ResponseWriter, r *http.Request) {
|
||||
conn, err := upgrader.Upgrade(w, r, nil)
|
||||
if err != nil {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
log.WithError(err).Error("Unable to initialize websocket")
|
||||
return
|
||||
}
|
||||
defer conn.Close()
|
||||
|
|
Loading…
Reference in a new issue