diff --git a/downloadmanager.py b/downloadmanager.py
index 8402b81..2a6584a 100644
a
|
b
|
def save_link(url, text, owner_document): |
311 | 311 | interfaces.nsIRequest.LOAD_BYPASS_CACHE | \ |
312 | 312 | interfaces.nsIChannel.LOAD_CALL_CONTENT_SNIFFERS |
313 | 313 | |
314 | | if _implements_interface(channel, interfaces.nsIHttpChannel): |
315 | | channel.referrer = io_service.newURI(owner_document.documentURI, None, |
316 | | None) |
| 314 | if uri.scheme == 'http': |
| 315 | if _implements_interface(channel, interfaces.nsIHttpChannel): |
| 316 | channel.referrer = io_service.newURI(owner_document.documentURI, |
| 317 | None, None) |
317 | 318 | |
318 | 319 | # kick off the channel with our proxy object as the listener |
319 | 320 | listener = xpcom.server.WrapObject( |