You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nima webserver fails to parse Accept-Encoding if header contains list of codings separated by only commas.
For example, this value gzip;q=1.0,deflate;q=0.6,identity;q=0.3 leads to NumberFormatException inside io.helidon.nima.http.encoding.ContentEncodingSupportImpl$EncodingWithQ.parse method.
Current parser uses comma+space as delimiter, but it seems that accoring to rfc that space is optional.
Actually I discovered this issue doing http requests to nima server using ruby's standard http client.
Environment Details
Problem Description
Nima webserver fails to parse Accept-Encoding if header contains list of codings separated by only commas.
For example, this value
gzip;q=1.0,deflate;q=0.6,identity;q=0.3
leads to NumberFormatException insideio.helidon.nima.http.encoding.ContentEncodingSupportImpl$EncodingWithQ.parse
method.Current parser uses
comma+space
as delimiter, but it seems that accoring to rfc that space is optional.Actually I discovered this issue doing http requests to nima server using ruby's standard http client.
Steps to reproduce
Do following request to Nima webserver
curl -H 'Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3' http://localhost:8080
The text was updated successfully, but these errors were encountered: