Browse Source

more oath

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
master v0.0.10
Martyn 1 year ago
parent
commit
7735ca7a27
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      internal/webserver/webserver.go

+ 1
- 0
internal/webserver/webserver.go View File

@ -221,6 +221,7 @@ func TwitchAdminHandler(response http.ResponseWriter, request *http.Request) {
return
}
req.Header.Add("Client-ID", ircBot.AppCredentials.ClientID)
req.Header.Add("Authorization", "Bearer "+ircBot.AppCredentials.Password)
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
resp, err := http.DefaultClient.Do(req)
if err != nil {

Loading…
Cancel
Save