Adds cgi case for headers parsing. Looking into $_SERVER['HTTP_*'] to get Content-Type and X-AUTHENTICATION-TOKEN (tested on nginx/php-fpm)