Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Commit

Permalink
fix/fetch_file_metadata: resolve fetching file with metadata via dns
Browse files Browse the repository at this point in the history
fixes #234
  • Loading branch information
hitman401 committed Aug 23, 2016
1 parent 41b30a5 commit ffbe18a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/server/controllers/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export var getFile = function(req, res, next) {
'Content-Type': mime.lookup(filePath) || 'application/octet-stream'
};
if (fileStats.metadata && fileStats.metadata.length > 0) {
headers.metadata = new Buffer(fileStats.metadata, 'base64').tostring('base64');
headers.metadata = new Buffer(fileStats.metadata, 'base64').toString('base64');
}
res.writeHead(range ? 206 : 200, headers);
if (chunksize === 0) {
Expand Down

0 comments on commit ffbe18a

Please sign in to comment.