solid-tutorial-intro icon indicating copy to clipboard operation
solid-tutorial-intro copied to clipboard

Media-Type not specified when posting Turtle

Open retog opened this issue 7 years ago • 0 comments

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.

retog avatar Oct 04 '17 11:10 retog