Skip to content

Commit

Permalink
v0.14.1
Browse files Browse the repository at this point in the history
- Bugfix for `$.download` when calling `$.sendFile` send the proper
encoding not the name. #67
  • Loading branch information
adamhalasz committed Mar 3, 2017
1 parent 0b5842f commit c9eb53c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.14.1 - March 3, 2017
- Bugfix for `$.download` when calling `$.sendFile` send the proper encoding not the name. #67

## v0.14.0 - March 3, 2017
- Introducing `$.download(path, filename)` #67
- Download Test
Expand Down
2 changes: 1 addition & 1 deletion controllers/protocols/http/signal.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
download: function(path, name, encoding){
var filename = name ? name : Path.basename(path)
signal.setHeader('Content-Disposition', 'attachment; filename="'+filename+'"')
signal.sendFile(path, name, encoding)
signal.sendFile(path, encoding)
},
redirect: function(input, statusCode, isLast){
if(input.substring(0, 4) === 'back') {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "diet",
"version": "0.14.0",
"version": "0.14.1",
"description": "A tiny, fast and modular node.js web framework. Good for making fast & scalable apps and apis.",
"homepage": "http://dietjs.com/",
"keywords": [
Expand Down

0 comments on commit c9eb53c

Please sign in to comment.