nodeSolidServer / nodeSolidServer/node-solid-server

PUT Requests storing empty JSON object

Abierto
#1,165 12 comentarios 0 reacciones 1 asignado Ver en GitHub

@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

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.