Skip to content

Commit

Permalink
fix error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
salrashid123 committed Oct 9, 2023
1 parent 362658d commit 1a06a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adc.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ func main() {
data.Add("assertion", tokenString)

hreq, err := http.NewRequest("POST", "https://accounts.google.com/o/oauth2/token", bytes.NewBufferString(data.Encode()))
hreq.Header.Set("Content-Type", "application/x-www-form-urlencoded; param=value")
if err != nil {
fmt.Printf("Error: Unable to generate token Request, %v\n", err)
os.Exit(1)
}
hreq.Header.Set("Content-Type", "application/x-www-form-urlencoded; param=value")
resp, err := client.Do(hreq)
if err != nil {
fmt.Printf("Error: unable to POST token request, %v\n", err)
Expand Down

0 comments on commit 1a06a75

Please sign in to comment.