forked from External/ergo
go get and commit the websocket fork
This commit is contained in:
parent
7b8e15ff1d
commit
f05c57344e
3 changed files with 6 additions and 3 deletions
4
vendor/github.com/gorilla/websocket/server.go
generated
vendored
4
vendor/github.com/gorilla/websocket/server.go
generated
vendored
|
|
@ -99,8 +99,8 @@ func checkSameOrigin(r *http.Request) bool {
|
|||
func (u *Upgrader) selectSubprotocol(r *http.Request, responseHeader http.Header) string {
|
||||
if u.Subprotocols != nil {
|
||||
clientProtocols := Subprotocols(r)
|
||||
for _, serverProtocol := range u.Subprotocols {
|
||||
for _, clientProtocol := range clientProtocols {
|
||||
for _, clientProtocol := range clientProtocols {
|
||||
for _, serverProtocol := range u.Subprotocols {
|
||||
if clientProtocol == serverProtocol {
|
||||
return clientProtocol
|
||||
}
|
||||
|
|
|
|||
3
vendor/modules.txt
vendored
3
vendor/modules.txt
vendored
|
|
@ -18,7 +18,7 @@ github.com/docopt/docopt-go
|
|||
github.com/go-sql-driver/mysql
|
||||
# github.com/go-test/deep v1.0.6
|
||||
## explicit
|
||||
# github.com/gorilla/websocket v1.4.2
|
||||
# github.com/gorilla/websocket v1.4.2 => github.com/oragono/websocket v1.4.2-oragono1
|
||||
## explicit
|
||||
github.com/gorilla/websocket
|
||||
# github.com/goshuirc/irc-go v0.0.0-20210301225436-2c4b83d64847
|
||||
|
|
@ -90,3 +90,4 @@ golang.org/x/text/width
|
|||
# gopkg.in/yaml.v2 v2.3.0
|
||||
## explicit
|
||||
gopkg.in/yaml.v2
|
||||
# github.com/gorilla/websocket => github.com/oragono/websocket v1.4.2-oragono1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue