This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
mtime and mtime-nsecs multipart headers not sent in browser #2837
Labels
pkg:http-client
Issues related only to ipfs-http-client
The code here essentially is doing the following:
Output (tested in Firefox and Chrome):
Missing
mtime
header. Worryingly, as far as I can see, there's no way to set custom multipart headers using the APIs we have in the browser.The
form-data
module supportsheader
so it's working in Node.js:https://github.com/form-data/form-data/blob/d7026253e728af9568503dc3dc55cd1a566605e0/lib/form_data.js#L181-L191
Tests for metadata are skipped here since go-ipfs does not support this feature and the tests that use
js-ipfs-http-client
injs-ipfs
are run from Node.js. This is why we haven't seen failing tests for it.Maybe we need to test against js-ipfs too, if js-ipfs is going to support features like this before go-ipfs in the future.
I'm not sure how this comment got resolved, I thought I was getting déjà vu! ipfs-inactive/js-ipfs-http-client#1186 (comment)
The text was updated successfully, but these errors were encountered: