Skip to content

Commit

Permalink
Merge pull request #224 from basicallydan/fix-git-io-url
Browse files Browse the repository at this point in the history
[Fix] Make git.io URL secure, http -> https, to keep up with GitHub
  • Loading branch information
holman committed Feb 1, 2016
2 parents f678b42 + 9b48df3 commit 886e615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/gitio
Expand Up @@ -24,7 +24,7 @@ if code
code = "-F code=#{code}"
end

output = `curl -i http://git.io -F 'url=#{url}' #{code} 2> /dev/null`
output = `curl -i https://git.io -F 'url=#{url}' #{code} 2> /dev/null`
if output =~ /Location: (.+)\n?/
puts $1
`echo #$1 | pbcopy`
Expand Down

0 comments on commit 886e615

Please sign in to comment.