solid-tutorial-intro
solid-tutorial-intro copied to clipboard
Media-Type not specified when posting Turtle
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.