The modern web is mostly HTTPS now, and some browsers may start giving warnings when one uses a plain HTTP connection. Only update the protocol when the HTTPS connection exists and fully works. Code from external projects/tools is kept as is.