1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-15 17:46:55 +00:00

Fix tests without skipping

This commit is contained in:
Kane York 2015-11-16 22:34:55 -08:00
parent 5dc54bbd2e
commit 532cd0e2ce
2 changed files with 16 additions and 10 deletions

View file

@ -88,12 +88,14 @@ func SetupServerAndHandle(config *ConfigFile, serveMux *http.ServeMux) {
go ircConnection()
}
const TwitchDotTv = "http://www.twitch.tv"
// SocketUpgrader is the websocket.Upgrader currently in use.
var SocketUpgrader = websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: 1024,
CheckOrigin: func(r *http.Request) bool {
return r.Header.Get("Origin") == "http://www.twitch.tv"
return r.Header.Get("Origin") == TwitchDotTv
},
}