From 2f84f493a0cbb94dea99bce8608b2604d1d11b3c Mon Sep 17 00:00:00 2001 From: Zbigniew Mandziejewicz Date: Sat, 1 Nov 2014 17:59:17 +0800 Subject: [PATCH] Change schema to https in gitignore plugin Request to http://www.gitignore.io returns 301 since cloudflare moved away from http to https schema. Using curl -L (use location header) might be unsafe therefore I simply updated URL. --- plugins/gitignore/gitignore.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/gitignore/gitignore.plugin.zsh b/plugins/gitignore/gitignore.plugin.zsh index be037d87a..5bf302452 100644 --- a/plugins/gitignore/gitignore.plugin.zsh +++ b/plugins/gitignore/gitignore.plugin.zsh @@ -1,7 +1,7 @@ -function gi() { curl http://www.gitignore.io/api/$@ ;} +function gi() { curl https://www.gitignore.io/api/$@ ;} _gitignireio_get_command_list() { - curl -s http://www.gitignore.io/api/list | tr "," "\n" + curl -s https://www.gitignore.io/api/list | tr "," "\n" } _gitignireio () {