From: Michael Wallner Date: Wed, 18 Mar 2015 07:03:26 +0000 (+0100) Subject: clarify handled content types X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=0e0ff2647259f1c2f849bda730a79712bd806edc;p=mdref%2Fmdref-json_post clarify handled content types --- 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: