smallrye / smallrye-metrics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`MetricsRequstHandler` not trimming `Accept` header values

Channyboy opened this issue · comments

By default, HttpUrlConnection or HttpsUrlConnection uses the default Accept Header by the JDK

text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2

Current implementation when splitting does not trim the values, which causes the implementation to throw a 406 Couldn't determine a suitable media type for the given Accept header. when there is a valid *.*.