Skip to content

Commit

Permalink
Merge pull request mozilla#4687 from timvandermeij/attachments-conten…
Browse files Browse the repository at this point in the history
…t-type

Providing content type for attachment downloads
  • Loading branch information
yurydelendik committed Apr 28, 2014
2 parents 2ff1d43 + c566feb commit 458d88d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions extensions/firefox/content/PdfStreamConverter.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 458d88d

Please sign in to comment.