Fix for getallheaders() not existing on certain servers