Use $_SERVER['CONTENT_LENGTH'] instead of getallheaders().
Merge pull request #2 from alexsdutton/master

Use $_SERVER['CONTENT_LENGTH'] instead of getallheaders().