Google Chrome Accept Header breaks eXist-Query
Requesting https://ref.de.dariah.eu/tgnsearch/tgnquery.xql?ac=Bam in Google Chrome (Version 78.0.3904.97 (Official Build) (64-bit)), using Accept-Header 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3' breaks the eXist:
javax.servlet.ServletException: javax.servlet.ServletException: An error occurred while processing request to /exist/restxq/tgnsearch/tgnquery.xql: Invalid Accept Header Value: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3' in respect to pattern: '((?:(?:*/*)|(?:[a-z0-9!#$&.+-^_]{1,127}/*)|(?:[a-z0-9!#$&.+-^_]{1,127}/[a-z0-9!#$&.+-^_]{1,127}))(?:;\s?q=(?:0(?:.[0-9]{1,3})?)|(?:1(?:.[0]{1,3})?))?\s?(?:;\s?[a-z]+=[a-z]+|(?:"[a-z0-9]+"))?)(,\s?(?:(?:*/*)|(?:[a-z0-9!#$&.+-^_]{1,127}/*)|(?:[a-z0-9!#$&.+-^_]{1,127}/[a-z0-9!#$&.+-^_]{1,127}))(?:;\s?q=(?:0(?:.[0-9]{1,3})?)|(?:1(?:.[0]{1,3})?))?\s?(?:;\s?[a-z]+=[a-z]+|(?:"[a-z0-9]+"))?)*'
The 'application/signed-exchange;v=b3' part seems to be the problem. It should be 'q=0.3'. There is no 'v' permitted and no 'b3' permitted due to https://tools.ietf.org/html/rfc7231#section-5.3.2.
See also: https://github.com/eXist-db/exist/issues/1698 and https://bugs.openjdk.java.net/browse/JDK-8163921