Skip to content

Commit

Permalink
Merge pull request olahol#36 from yoki123/patch-1
Browse files Browse the repository at this point in the history
Support for the subprotocol
  • Loading branch information
Ola Holmström authored Feb 27, 2018
2 parents d521390 + dfc3455 commit 7bd6591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion melody.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7bd6591

Please sign in to comment.