nodeSolidServer / nodeSolidServer/node-solid-server
Unknown content types are served as text/plain
Aperta
@jaxoncreed ci sta già lavorando.
Dal 1/7/2019.
test-case
triage
- Lingua principale
- JavaScript
- Stelle
- 1.8k
- Fork
- 308
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.