nodeSolidServer / nodeSolidServer/node-solid-server
PUT Requests storing empty JSON object
オープン
@jaxoncreed がすでに取り組んでいます。
2019年4月24日 から。
test-case
- 主要言語
- JavaScript
- スター
- 1.8k
- フォーク
- 308
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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
{}
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。