buda-base / lds-pdi

http://purl.bdrc.io BDRC Linked Data Server
Apache License 2.0
2 stars 0 forks source link

http 300 when no accept header #55

Closed eroux closed 6 years ago

eroux commented 6 years ago

This doesn't answer any real life problem I think, but it may be helpful to implement in order to have a nice demo:

When a user would go to http://purl.bdrc.io/resource/XXX with no Accept header, a http 300 code should be returned with the list of rdf serializations and the link to the html page. I think this example is ok...

Note that because browser ask for html, this won't affect regular users.

eroux commented 6 years ago

I think in this case we should have the list of alternates as in #63 but also the TCN header set to list (if I look at the examples of rfc2295)

MarcAgate commented 6 years ago

Implemented as of commit 2b33cc2

To be tested with: curl -v http://localhost:8080/resource/P88 -H "Accept:" and curl -v -X POST http://localhost:8080/resource/P88 -H "Accept:"