瀏覽代碼

Update dl.devdocs.io URL to HTTPS

Thibaut Courouble 7 年之前
父節點
當前提交
db523e2a85
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/tasks/docs.thor

+ 1 - 1
lib/tasks/docs.thor

@@ -237,7 +237,7 @@ class DocsCLI < Thor
 
   def download_doc(doc)
     target_path = File.join(Docs.store_path, doc.path)
-    open "http://dl.devdocs.io/#{doc.path}.tar.gz" do |file|
+    open "https://dl.devdocs.io/#{doc.path}.tar.gz" do |file|
       FileUtils.mkpath(target_path)
       file.close
       tar = UnixUtils.gunzip(file.path)