Better support for https in rtgov gadgets