Fixed issue with http/https requests