~ubuntu-branches/debian/sid/postr/sid

« back to all changes in this revision

Viewing changes to src/postr.py

  • Committer: Package Import Robot
  • Author(s): Alexander Alemayhu
  • Date: 2014-07-06 10:50:07 UTC
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20140706105007-rhbk6td6g8q997ul
Tags: upstream-0.13.1
ImportĀ upstreamĀ versionĀ 0.13.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
223
223
                user = client.get_string("/system/http_proxy/authentication_user")
224
224
                password = client.get_string("/system/http_proxy/authentication_password")
225
225
                if user and user != "":
226
 
                    url = "http://%s:%s@%s:%d" % (user, password, host, port)
 
226
                    url = "https://%s:%s@%s:%d" % (user, password, host, port)
227
227
                else:
228
 
                    url = "http://%s:%d" % (host, port)
 
228
                    url = "https://%s:%d" % (host, port)
229
229
            else:
230
 
                url = "http://%s:%d" % (host, port)
 
230
                url = "https://%s:%d" % (host, port)
231
231
 
232
232
            self.flickr.set_proxy(url)
233
233
        else: