Unknown content types are served as text/plain
@jaxoncreed 已經在處理了。
開始於 2019年7月1日。
評估
這個 Issue 還沒有評估資料。
描述
Please describe what you did in reproducible steps
Put foo and foo.ttl with no content-type specified. In both cases the server serves them as "text/plain"/
How did it work with 4.x series servers?
Unless I'm mis-remembering, it used to default to "text/turtle" for put of resources.
What happened when you tried the same with the 5.x series server?
It now defaults to "text/plain".
Any material that will help, logs, error messages, etc.
const auth = require('solid-auth-cli')
const base = "https://jeffz.solid.community/public/test/test-file"
async function main(){
await auth.login()
let res = await auth.fetch( base, {method:"PUT"} )
console.log( res.headers.get("content-type") )
res = await auth.fetch( base + ".ttl", {method:"PUT"} )
console.log( res.headers.get("content-type") )
}
main()
// output :
//
// text/plain; charset=utf-8
// text/plain; charset=utf-8
- 主要語言
- JavaScript
- 星號
- 1.8k
- 分支
- 308
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
nodeSolidServer/node-solid-server 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 72/100
nodeSolidServer/node-solid-server#1848 · 2 則留言 · 1 個 reaction ·
-
難度 2/5 1-3 小時 新手友好度 65/100
nodeSolidServer/node-solid-server#1841 · 2 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 65/100
nodeSolidServer/node-solid-server#1147 ·
-
難度 4/5 3-5 天 新手友好度 35/100
nodeSolidServer/node-solid-server#1867 ·
-
難度 5/5 一週以上 新手友好度 45/100
nodeSolidServer/node-solid-server#1853 ·
查看 nodeSolidServer/node-solid-server 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 75/100
palladius/rails8-app-on-gcp#145 ·
-
難度 2/5 1-3 小時 新手友好度 65/100
dotenvx/dotenv-vscode#139 ·
-
test-change-proposal
難度 2/5 1-3 小時 新手友好度 65/100
web-platform-tests/interop#1455 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
corsairdev/corsair#1764 ·
-
難度 2/5 1-3 小時 新手友好度 75/100