Sibyx / django_api_forms

Declarative Django request validation for RESTful APIs

Home Page:https://sibyx.github.io/django_api_forms/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validation fails when charset is specified in Content-Type

nono3551 opened this issue · comments

When Content-Type: 'application/json' is sent in POST request, validation is successful. Problem is that library does not when charset is specified.

Validation fails for Content-Type: 'application/json; charset=utf-8'.

https://tools.ietf.org/html/rfc2616#page-124
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type

There is another directive boundary which may also beak library behavior.

Fixed in #17 release ad 0.13.0