nodeSolidServer / nodeSolidServer/node-solid-server
PUT Requests storing empty JSON object
Abierto
@jaxoncreed ya está trabajando en esto.
Desde el 24/4/2019.
test-case
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.8k
- Forks
- 308
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
{}
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.