~ubuntu-branches/ubuntu/wily/how-can-i-help/wily

« back to all changes in this revision

Viewing changes to bin/how-can-i-help

  • Committer: Package Import Robot
  • Author(s): Tomasz Nitecki
  • Date: 2015-06-02 00:26:30 UTC
  • mfrom: (13.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20150602002630-o2vp7bs01bur15yo
Tags: 11
Allow hcih to download data through https. Closes: #787471
Patch from Stephen Kitt <skitt@debian.org>

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
  exit(0)
42
42
end
43
43
 
44
 
HELPITEMS_URL = 'http://udd.debian.org/how-can-i-help.json.gz'
 
44
HELPITEMS_URL = 'https://udd.debian.org/how-can-i-help.json.gz'
45
45
CACHEDIR = "#{HOME}/.cache/how-can-i-help"
46
46
CONFIGDIR = "#{HOME}/.config/how-can-i-help"
47
47
SEEN_LOCAL = "#{CACHEDIR}/seen.json"
120
120
proxy_user, proxy_pass = proxy_uri.userinfo.split(/:/) if proxy_uri.userinfo
121
121
http_object = Net::HTTP.new(uri.host, uri.port, proxy_uri.host, proxy_uri.port,
122
122
                     proxy_user, proxy_pass)
 
123
http_object.use_ssl = uri.scheme == 'https'
123
124
# proceeding get_response
124
125
 
125
126
begin