Browse Source

Merge pull request #4687 from timvandermeij/attachments-content-type

Providing content type for attachment downloads
Yury Delendik 11 years ago
parent
commit
458d88d218
  1. 3
      extensions/firefox/content/PdfStreamConverter.jsm

3
extensions/firefox/content/PdfStreamConverter.jsm

@ -274,7 +274,8 @@ ChromeActions.prototype = { @@ -274,7 +274,8 @@ ChromeActions.prototype = {
var listener = {
extListener: null,
onStartRequest: function(aRequest, aContext) {
this.extListener = extHelperAppSvc.doContent((data.isAttachment ? '' :
this.extListener = extHelperAppSvc.doContent(
(data.isAttachment ? 'application/octet-stream' :
'application/pdf'),
aRequest, frontWindow, false);
this.extListener.onStartRequest(aRequest, aContext);

Loading…
Cancel
Save