fix for ['HTTP_USER_AGENT'] not being set.