nodeSolidServer / nodeSolidServer/node-solid-server

PUT Requests storing empty JSON object

オープン
#1,165 コメント 12 件 リアクション 0 件 担当者 1 名 GitHub で見る

@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

{}

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。