nodeSolidServer / nodeSolidServer/node-solid-server
PUT Requests storing empty JSON object
Aperta
@jaxoncreed ci sta già lavorando.
Dal 24/4/2019.
test-case
- Lingua principale
- JavaScript
- Stelle
- 1.8k
- Fork
- 308
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I am trying to update text files on my pod using a PUT request. If I have a text file, e.g. /public/hello.txt and make a PUT request to override its value, the file is replaced by a text file with an empty JSON object.
Here's a snipped of the code I used to perform the PUT request. Here we are assuming /public/hello.txt exists already.
url = "https://boulderwebdev.solid.community/public/hello.txt"
solid.fetch(url, {
method: "PUT",
headers: {
"Content-Type": "text/plain"
},
body: JSON.stringify({"hello": "world"})
}).then(resp => {...})
If you go to https://boulderwebdev.solid.community/public/hello.txt now you will see a page with the text
{}
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.