StackStorm / st2web

StackStorm Web UI
http://www.stackstorm.com/features
Apache License 2.0
102 stars 83 forks source link

@stackstorm/module-api does not handle additional data in ContentType headers (ie: content-type: application/json; charset=utf-8) #981

Closed luislobo closed 2 years ago

luislobo commented 2 years ago

Our production Nginx configuration has set charset utf-8; making Content-Type header to be application/json; charset=utf-8, not just application/json.

@stackstorm/module-api compares headers['content-type'] to be exactly application/json.

I'll be creating a PR that fixes this problem.