Tweaked mgRequest to work with request 2.36