Skip to content
Snippets Groups Projects
Commit a58356d9 authored by Hugo NOUTS's avatar Hugo NOUTS
Browse files

back to https

parent 1fcdc7bb
Branches
No related tags found
No related merge requests found
Pipeline #7839 passed
...@@ -11,7 +11,6 @@ import ( ...@@ -11,7 +11,6 @@ import (
"os" "os"
"strconv" "strconv"
"strings" "strings"
"crypto/tls"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )
...@@ -462,12 +461,11 @@ func main() { ...@@ -462,12 +461,11 @@ func main() {
log.Debug("data sent is : ", data) log.Debug("data sent is : ", data)
log.Debug("Send request to token endpoint: ", tokenUrl) log.Debug("Send request to token endpoint: ", tokenUrl)
http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
response, err := http.PostForm(tokenUrl, data) response, err := http.PostForm(tokenUrl, data)
if err != nil { if err != nil {
log.Error(err) log.Error(err)
} else { } else {
log.Debug("Endpoint response with status", response.Status, response.error_description) log.Debug("Endpoint response with status", response.Status)
defer response.Body.Close() defer response.Body.Close()
if response.StatusCode >= 200 && response.StatusCode <= 299 { if response.StatusCode >= 200 && response.StatusCode <= 299 {
// Set Content-Type in response header // Set Content-Type in response header
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment