Open ntvsx193 opened 10 years ago
I like the change, but it should actually be handled automatically depending on the request header's Content-Type
. We should not depend then anymore on $_GET, $_POST
directly, instead making a new method getValue($key)
that checks the content-type and returns queryString value or this from the (encoded) request body should do the trick.
Oh, yes. You're right. I'm add check Content-type
and upload commit.
@ntvsx193 This PR is great! Thanks for sharing it. This needs to be merged. I've manually merged it in my project.
@marcj please accept pull request
works great!
https://github.com/marcj/php-rest-service/issues/13