From: Michael Wallner Date: Fri, 14 Aug 2015 07:28:28 +0000 (+0200) Subject: clarify content types handled X-Git-Tag: v1.0.2~22 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=bc3829fecbd951613c960230cd08ffe59fcab42c;p=m6w6%2Fext-json_post clarify content types handled --- diff --git a/README.md b/README.md index 460ae5f..cc8b8ac 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ -# PECL :: json_post +# PECL :: json_post [![Build Status](https://travis-ci.org/m6w6/ext-json_post.svg?branch=master)](https://travis-ci.org/m6w6/ext-sjon_post) -JSON POST handler [![Build Status](https://travis-ci.org/m6w6/ext-json_post.svg?branch=master)](https://travis-ci.org/m6w6/ext-sjon_post) +JSON POST handler ## About -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`. +This tiny extension provides a PHP content type handler for JSON to PHP's +form data parser. If the `Content-Type` of an incoming request is `text/json` +or `application/json`, the JSON contents of the request body will by parsed +into `$_POST`. This extension does not provide any constants, functions or classes.