Skip to content

Commit

Permalink
Merge pull request #10 from VeliovGroup/dev_1
Browse files Browse the repository at this point in the history
v1.1.5
 - Fix minor download issue #9
  • Loading branch information
dr-dimitru committed Apr 24, 2015
2 parents c400f67 + 8371d6e commit dac0b8d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .versions
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
ostrio:[email protected].4
ostrio:[email protected].5
ostrio:[email protected]
[email protected]
[email protected]
Expand Down
8 changes: 4 additions & 4 deletions files.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ class Meteor.Files
'Cache-Control': self.cacheControl
'Content-Type': self.currentFile.type
'Content-Encoding': 'binary'
'Content-Disposition': 'attachment; filename=' + encodeURI self.currentFile.name + '; charset=utf-8'
'Content-Disposition': "attachment; filename=\"#{encodeURI self.currentFile.name}\"; charset=utf-8"
'Content-Length': self.currentFile.size
resp.write file
resp.end()
Expand Down Expand Up @@ -645,7 +645,7 @@ class Meteor.Files
'Cache-Control': 'no-cache'
'Content-Type': self.currentFile.type
'Content-Encoding': 'binary'
'Content-Disposition': "attachment; filename=#{encodeURI(self.currentFile.name)}; charset=utf-8"
'Content-Disposition': "attachment; filename=\"#{encodeURI(self.currentFile.name)}\"; charset=utf-8"
'Content-Length': if result.Start == result.End then 0 else (result.End - result.Start + 1);
'Accept-Ranges': 'bytes'
stream.pipe resp
Expand All @@ -657,7 +657,7 @@ class Meteor.Files
'Cache-Control': self.cacheControl
'Content-Type': self.currentFile.type
'Content-Encoding': 'binary'
'Content-Disposition': "attachment; filename=#{encodeURI(self.currentFile.name)}; charset=utf-8"
'Content-Disposition': "attachment; filename=\"#{encodeURI(self.currentFile.name)}\"; charset=utf-8"
'Content-Length': self.currentFile.size
'Accept-Ranges': 'bytes'
stream.pipe resp
Expand All @@ -668,7 +668,7 @@ class Meteor.Files
'Cache-Control': self.cacheControl
'Content-Type': self.currentFile.type
'Content-Encoding': 'binary'
'Content-Disposition': "attachment; filename=#{encodeURI(self.currentFile.name)}; charset=utf-8"
'Content-Disposition': "attachment; filename=\"#{encodeURI(self.currentFile.name)}\"; charset=utf-8"
'Content-Length': self.currentFile.size
stream.pipe resp

Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'ostrio:files',
version: '1.1.4',
version: '1.1.5',
summary: 'Upload, Store and Download small and huge files to/from file system (FS) via DDP and HTTP',
git: 'https://github.com/VeliovGroup/Meteor-Files',
documentation: 'README.md'
Expand Down

0 comments on commit dac0b8d

Please sign in to comment.