RDFLib / prez-ui

BSD 3-Clause "New" or "Revised" License
10 stars 7 forks source link

parseLinkHeader cannot parse multiple link values if the values are not separated by comma-space #165

Open ashleysommer opened 5 months ago

ashleysommer commented 5 months ago

This line here assumes link values in the Link Header will be separated by comma-space. https://github.com/RDFLib/prez-ui/blob/067ab411c04ef9e58ea49b66b96a29ed430c4800/src/composables/api.ts#L63

However some HTTP servers will remove spaces between multiple header values. The values will be separated by comma without a space. In this case, prez-ui throws "currentProfile is undefined" because it cannot get correctly read the available profiles from the Link header.