more oath
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
0afe049bd7
commit
7735ca7a27
|
@ -221,6 +221,7 @@ func TwitchAdminHandler(response http.ResponseWriter, request *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
req.Header.Add("Client-ID", ircBot.AppCredentials.ClientID)
|
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")
|
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
|
||||||
resp, err := http.DefaultClient.Do(req)
|
resp, err := http.DefaultClient.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue