EventSub is expecting an unspecified Content-Type in verify response

The CLI only reports the headers that your server returns.
The CLI itself doesn’t add headers.

You can test header response your senf by makign a curl request to your own server or using a HTTP Testing tool such as postman or insomnia and confirm it’s not the CLI at fault, since the CLI doesn’t add headers it only reports what your server returns.

This could be being added by nginx/apache or whatever is in front of your c code (if anything).

As you can see in the code as it’s open source

https://github.com/twitchdev/twitch-cli/search?q=charset%3Dutf-8

https://github.com/twitchdev/twitch-cli/search?q=utf-8&type=code

There is no reference to this in the code

See also

and follow the code backwards. The CLI doesn’t modify headers it only reports the headers your server declares.

And since you are having the same problem with “real” eventsub, it’s your server not the CLI/Twitch.

As Real eventsub isn’t modifying the headers either.

If you provide your callback I can test it myself in insomnia and confirm it