updated http headers to fix occasional 502 Bad Gateway responses