Browse Source

Merge pull request #36 from yoki123/patch-1

Support for the subprotocol
master
Ola Holmström 7 years ago
committed by GitHub
parent
commit
7bd65910e5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      melody.go

2
melody.go

@ -167,7 +167,7 @@ func (m *Melody) HandleRequestWithKeys(w http.ResponseWriter, r *http.Request, k
return errors.New("melody instance is closed")
}
conn, err := m.Upgrader.Upgrade(w, r, nil)
conn, err := m.Upgrader.Upgrade(w, r, w.Header())
if err != nil {
return err

Loading…
Cancel
Save