-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How is retrieved the content-type of typed links in html header #544
Comments
Yes, F-UJI rather trusts the content type claimed by the server. I also think the content is delivered as binary for the jsonld extension is this correct? |
Thank you. I'm not that familiar servers delivering the content but this is the header I get:
|
Can you please post or send me the URL of the web page which contains the signposting link? |
…rver reports to be the content type see #544
OK I see, the server should respond the correct mime type but now I added some kind of preferred mime type handling which also checks for JSON content in case explicitely mentioned as accept type during signposting. |
I have the following link in the header of a website:
The json-ld file is correct and can be retrieved. However, I get the following logs in FsF-F2-01M:
I did some investigation. I use GitLab Pages to host the website. GitLab Pages is hosted with a custom server implemented in Go. They use https://pkg.go.dev/mime#TypeByExtension function to assign the content-type in the request header based on the file extension. If the content type cannot be assigned, GitLab Pages defaults to
application/octet-stream
. Go supports only limited list of file extensions.Since I used
.jsonld
extension, which is not in the Go's list, GitLab Pages sets the content-type toapplication/octet-stream
. I think this causesCould not determine RDF serialisation format
, because using.json
file extension causes content-type to be set toapplication/json
and fixes the issue.Do I understand it correctly that F-UJI retrieves the content type from the http request header and not from the type defined in the typed link?
The text was updated successfully, but these errors were encountered: