One more adjustment to fix redirect issue where https requests are redirected to http.