mirror of https://github.com/gorilla/websocket.git
Travis config: Add Go 1.10.x, revert 1.4.x to 1.4
1.4.x is missing go vet
This commit is contained in:
parent
4f2cfb1c31
commit
206154d174
|
@ -3,12 +3,13 @@ sudo: false
|
|||
|
||||
matrix:
|
||||
include:
|
||||
- go: 1.4.x
|
||||
- go: 1.4
|
||||
- go: 1.5.x
|
||||
- go: 1.6.x
|
||||
- go: 1.7.x
|
||||
- go: 1.8.x
|
||||
- go: 1.9.x
|
||||
- go: 1.10.x
|
||||
- go: tip
|
||||
allow_failures:
|
||||
- go: tip
|
||||
|
|
|
@ -20,6 +20,7 @@ var addr = flag.String("addr", "localhost:8080", "http service address")
|
|||
var upgrader = websocket.Upgrader{} // use default options
|
||||
|
||||
func echo(w http.ResponseWriter, r *http.Request) {
|
||||
log.Println(r.Header)
|
||||
c, err := upgrader.Upgrade(w, r, nil)
|
||||
if err != nil {
|
||||
log.Print("upgrade:", err)
|
||||
|
|
Loading…
Reference in New Issue