ruby-on-rails – 为什么Rails Gemfile默认为https,当http使捆绑包更快?

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – 为什么Rails Gemfile默认为https,当http使捆绑包更快?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
gem文件中Rails的默认gems源是:
source 'https://rubygems.org'

改变为

source 'http://rubygems.org'

使捆绑安装更快,所以我试图了解将https作为默认值的决定背后的原因.有什么我需要注意的吗?

解决方法

表格 here

Switching to HTTP is dangerous. It opens you to MITM attacks. Switching to HTTP allows hostile parties to replace gem contents with malic@R_403_437@s contents. Switching to HTTP is not recommended.

猜你在找的Ruby相关文章