Skip to content

Unknown content types are served as text/plain #1245

Description

@jeff-zucker

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                                                    

Metadata

Metadata

Assignees

Labels

test-caseIssues that will be revisited to be coded up as a surface test case.triageIssues that need team review

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions