nodeSolidServer / nodeSolidServer/node-solid-server
Unknown content types are served as text/plain
Đang mở
@jaxoncreed đang làm issue này rồi.
Từ ngày 1/7/2019.
test-case
triage
- Ngôn ngữ chính
- JavaScript
- Star
- 1.8k
- Fork
- 308
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.