list-fetch
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -112,3 +112,3 @@ const makeFetch = require('make-fetch') | ||
} else { | ||
return {statusCode: 400, headers: {'Content-Type': mainRes}, data: mainReq ? [`<html><head><title>${torrentData.name}</title></head><body><div><p>could not find partial content for ${foundFile.name}</p></div></body></html>`] : [JSON.stringify(`could not find partial content for ${foundFile.name}`)]} | ||
return {statusCode: 200, headers: {'Content-Type': getMimeType(mid.mainPath), 'Content-Length': String(foundFile.length)}, data: streamToIterator(foundFile.createReadStream())} | ||
} | ||
@@ -115,0 +115,0 @@ } else { |
{ | ||
"name": "list-fetch", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "coming soon", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
15486
206