Support patches served on https

Drupal.org uses https to serve files, so in order for this to work when clicking a patch on d.o it has to use https urls - this should not affect standard http calls.