-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webhooks coming in as application/xml format #1167
Comments
Hey @jcohenho! Could you share the headers you're seeing from the Stripe CLI? |
@tomer-stripe Here's an output from the request headers, note the HTTP_ACCEPT value:
|
Thank you! Let me poke more. We mostly pass the headers through 1:1 so that's a little odd stripe-cli/pkg/proxy/endpoint.go Lines 98 to 110 in df48924
|
@jcohenho Stripe itself is actually sending webhooks with that accept header. I confirmed that internally and with a test webhook: https://webhook.site/#!/view/6ffabbfa-a78d-4565-94ae-f6eec71f0718/8855e849-c425-4735-a629-bf7c2049e15b/1 I'm not sure if having the CLI change the behavior would be a good idea since this is how the data will be sent to you once you're in production too. |
Issue
The issue mentioned in this older issue seems to have reappeared.
Webhook requests are being sent with an
application/xml
format, while the content-type isapplication/json; charset=utf-8
Is this to be expected behavior?
Expected Behavior
I expect the request should be sent as a JSON format.
The text was updated successfully, but these errors were encountered: