Add default case for options.protocol, check if whether https or https