iipc / jwarc

Java library for reading and writing WARC files with a typed API
Apache License 2.0
46 stars 8 forks source link

Don't throw on duplicate keys in media type parameters #40

Closed ato closed 4 years ago

ato commented 4 years ago

Currently we throw IllegalArgumentException but that's not helpful. It looks like the behaviour in browsers varies but there's some momentum towards standardising on the first value and any subsequent ignored: https://github.com/whatwg/mimesniff/issues/41

See also #39.