From bc3829fecbd951613c960230cd08ffe59fcab42c Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 14 Aug 2015 09:28:28 +0200 Subject: [PATCH] clarify content types handled --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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. -- 2.30.2