Fixed issue with getallheaders not supported by nginx