Skip to content

Commit

Permalink
Add content type
Browse files Browse the repository at this point in the history
  • Loading branch information
jveski committed Dec 13, 2023
1 parent f59de2c commit d7a2fec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ func cancelPaypal(ctx context.Context, env *conf.Env, user *keycloak.User) error
return err
}
defer postResp.Body.Close()
postResp.Header.Set("Content-Type", "application/json")

if postResp.StatusCode == 404 {
log.Printf("not canceling paypal subscription because it doesn't exist even after previous check: %s", user.PaypalSubscriptionID)
Expand Down

0 comments on commit d7a2fec

Please sign in to comment.