From 2ae8c7604ac283c35e5f06c9c28ae204d1d20eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@ericsson.com> Date: Fri, 5 Apr 2024 10:16:57 +0200 Subject: [PATCH] docs fixed --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f61e318..b6583f8 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,8 @@ flask-minijson An extension for Flask to allow clients to submit data using the [minijson](https://github.com/Dronehub/minijson) codec by providing -a `Content-Type` header of `application/minijson`. +a `Content-Type` header of `application/x-minijson` (`application/minijson` will also do, in a pinch). + flask-json is required to be initialized before `FlaskMiniJSON`, in such a way: @@ -34,3 +35,8 @@ def endpoint(): if normal JSON is passed, it will be recognized. If minijson is sent by the client, it will be recognized as well. + +Important! +---------- + +Try to mark in the wild as `application/x-minijson`. Thank you! -- GitLab