nodeSolidServer / nodeSolidServer/node-solid-server
Unknown content types are served as text/plain
Abierto
@jaxoncreed ya está trabajando en esto.
Desde el 1/7/2019.
test-case
triage
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.8k
- Forks
- 308
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.