Skip to content

Accept header check in app.py too strict #21

@bnouwt

Description

@bnouwt

Hi, I am trying to use LodView with this SPARQL endpoint and the Accept header application/json check in app.py is too strict and does not allow the following Accept header sent by LodView (Apache Jena API):

application/sparql-results+json, application/sparql-results+xml;q=0.9, text/tab-separated-values;q=0.7, text/csv;q=0.5,application/json;q=0.2,application/xml;q=0.2,*/*;q=0.1

This seems like a valid Accept header, but it is rather complex, so we should maybe try and find some python package (fastAPI?) to do the parsing for us?

Regards, Barry

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions