nodeSolidServer / nodeSolidServer/node-solid-server
PUT Requests storing empty JSON object
Aberta
@jaxoncreed já está trabalhando nisso.
Desde 24/4/2019.
test-case
- Linguagem predominante
- JavaScript
- Estrelas
- 1.8k
- Forks
- 308
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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
{}
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Avaliação
Esta issue ainda não foi avaliada.