webhooks should work now

This commit is contained in:
an 2018-04-22 15:42:58 +02:00
parent 827167fa46
commit 66c4eecfda
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ func init() {
} }
func webhookRun() { func webhookRun() {
scanner := bufio.NewScanner(*webhook_token) scanner := bufio.NewScanner(*webhookToken)
for scanner.Scan() { for scanner.Scan() {
tok := strings.Split(scanner.Text(), " ") tok := strings.Split(scanner.Text(), " ")
http.HandleFunc("/webhook/"+tok[0], webhookHandleHTTP) http.HandleFunc("/webhook/"+tok[0], webhookHandleHTTP)