diff --git a/package.json b/package.json index dc94d3f58b..adf4935aa2 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "ipfs-bitswap": "^0.27.0", "ipfs-block": "~0.8.1", "ipfs-block-service": "~0.16.0", - "ipfs-http-client": "^42.0.0", + "ipfs-http-client": "github:ipfs/js-ipfs-http-client#feat/meta-for-get", "ipfs-http-response": "^0.5.0", "ipfs-mfs": "^1.0.0", "ipfs-multipart": "^0.3.0", diff --git a/src/http/api/resources/files-regular.js b/src/http/api/resources/files-regular.js index 5d4e728e5f..809ee18cff 100644 --- a/src/http/api/resources/files-regular.js +++ b/src/http/api/resources/files-regular.js @@ -95,7 +95,9 @@ exports.get = { async function * (source) { for await (const file of source) { const header = { - name: file.path + name: file.path, + mtime: file.mtime ? new Date(file.mtime.secs * 1000) : null, + mode: file.mode } if (file.content) {