Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

feat: support UnixFSv1.5 metadata #1186

Merged
merged 13 commits into from
Jan 9, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: include headers for directories
  • Loading branch information
achingbrain committed Dec 4, 2019
commit bf755d27765a6c0b25e496899bf6b5aec0142e97
3 changes: 2 additions & 1 deletion src/add/form-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ exports.toFormData = async input => {
} else {
formData.append(`dir-${i}`, Buffer.alloc(0), {
filepath: encodeURIComponent(file.path),
contentType: 'application/x-directory'
contentType: 'application/x-directory',
header: headers
})
}

Expand Down