[Pkg-javascript-commits] [pdf.js] 25/210: Providing content type for attachment downloads
David Prévot
taffit at moszumanska.debian.org
Thu Jun 5 14:20:57 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch upstream
in repository pdf.js.
commit c566feb721d9446b7abe32b8b17a51bf8ed3a21a
Author: Tim van der Meij <timvandermeij at gmail.com>
Date: Fri Apr 25 23:30:51 2014 +0200
Providing content type for attachment downloads
---
extensions/firefox/content/PdfStreamConverter.jsm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/extensions/firefox/content/PdfStreamConverter.jsm b/extensions/firefox/content/PdfStreamConverter.jsm
index c0f2bf3..cbbb121 100644
--- a/extensions/firefox/content/PdfStreamConverter.jsm
+++ b/extensions/firefox/content/PdfStreamConverter.jsm
@@ -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) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list