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. 7
      extensions/firefox/content/PdfStreamConverter.jsm

7
extensions/firefox/content/PdfStreamConverter.jsm

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

Loading…
Cancel
Save