API: Better compatibility with Apache/PHP-CGI

https://github.com/marienfressinaud/FreshRSS/issues/443#issuecomment-37226210