The createContainer method, found in src/fetcher.js, has a third optional argument used to pass folder metadata. But that argument cannot be used, since doing it causes an error to be thrown when webOperation is called without a contentType option.
In my opinion there is a mismatch between createContainer setting 'content-type': ''text/turtle' and webOperatiton expecting the property 'contentType'.
The
createContainer
method, found insrc/fetcher.js
, has a third optional argument used to pass folder metadata. But that argument cannot be used, since doing it causes an error to be thrown whenwebOperation
is called without a contentType option.I guess this could be fixed by adding
options.contentType = 'text/turtle'
on this line: https://github.com/linkeddata/rdflib.js/blob/master/src/fetcher.js#L1127But I'm not familiar enough with this library to be sure that it won't break anything.