nodeSolidServer / nodeSolidServer/node-solid-server

Unknown content types are served as text/plain

Offen
#1,245 10 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@jaxoncreed arbeitet bereits daran.

Seit 01.7.2019.

test-case triage
Vorherrschende Sprache
JavaScript
Sterne
1.8k
Forks
308
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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                                                    

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.