solid-contrib/solid-tutorial-intro

Media-Type not specified when posting Turtle

retog opened this issue · 0 comments

retog commented

The tutorial included the following code example:

[...]
    var data = new $rdf.Serializer(graph).toN3(graph)
    solid.web.post(defaultContainer, data).then(function(meta) {
[...]

This code doesn't specify the Media-Type to be used in the Content-Type header of the POST request causing it to default to text/plain (tested with solid-0.14.1) causing a Non-RDF rather than an RDF resource to be created.