Closed
Description
Environment Details
- Helidon Version: 4.0.0-ALPHA5
- Helidon SE
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 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.
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
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Closed
Activity