alvarcarto / url-to-pdf-api

Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
MIT License
7.03k stars 779 forks source link

allow to set charset in header of post request to api #70

Closed AndreyShishkanov closed 6 years ago

AndreyShishkanov commented 6 years ago

If set charset in http post request, header "Content-Type" will be like "application/json; charset=utf-8". So to check if body is json, we need to check that "Content-Type" not strictly equal "application/json" but includes "application/json".

kimmobrunfeldt commented 6 years ago

Thanks for the contribution!