Browse Source
Merge pull request #36 from yoki123/patch-1
Support for the subprotocol
master
Ola Holmström
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|