From 0e0ff2647259f1c2f849bda730a79712bd806edc Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 18 Mar 2015 08:03:26 +0100 Subject: [PATCH] clarify handled content types --- json_post.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json_post.md b/json_post.md index 548cefd..e220dfd 100644 --- a/json_post.md +++ b/json_post.md @@ -10,7 +10,7 @@ Parse JSON request bodies into `$_POST`. This tiny extension provides a PHP content type handler for `text/json` to PHP's form data parser. -If the `Content-Type` of an incoming request is `text/json`, the JSON contents of the request body will by parsed into `$_POST`. +If the `Content-Type` of an incoming request is `application/json` or `text/json`, the JSON contents of the request body will by parsed into `$_POST`. ## Installation: -- 2.30.2