twitpic.lua: fix double downloading http and https