Log whether it's a websocket request

This commit is contained in:
Jonathan Lange
2016-12-12 17:57:48 +00:00
parent 256e480acc
commit a8ba7b2c86
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ func (l Log) Wrap(next http.Handler) http.Handler {
log.Warnf("Could not dump request headers: %v", err)
return
}
log.Debugf(string(headers))
log.Debugf("Is websocket request: %v\n%s", IsWSHandshakeRequest(r), string(headers))
}
i := &interceptor{ResponseWriter: w, statusCode: http.StatusOK}
next.ServeHTTP(i, r)

2
vendor/manifest vendored
View File

@@ -1361,7 +1361,7 @@
"importpath": "github.com/weaveworks/common",
"repository": "https://github.com/weaveworks/common",
"vcs": "git",
"revision": "033d5c87743012524cc813c4a66f7d18afdb20b6",
"revision": "139d0313ac15170e9de8187b26e7df03b4cb910e",
"branch": "master",
"notests": true
},