Add content-type header

This commit is contained in:
Peter Stuifzand 2018-07-09 18:51:08 +02:00
parent 5aa2c012cd
commit 24a71a6b43

View File

@ -165,6 +165,7 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
req, err := http.NewRequest("POST", sess.AuthorizationEndpoint, strings.NewReader(reqData.Encode()))
req.Header.Add("Accept", "application/json")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
client := http.Client{}
resp, err := client.Do(req)
if err != nil {