Fix for https requests