ngrunwald / ring-middleware-format

Ring middleware for parsing parameters and emitting responses in JSON or other formats
163 stars 49 forks source link

Choose highest priority charset in accept header #65

Closed ahjones closed 7 years ago

ahjones commented 7 years ago

The current implementation uses the lowest priority charset.

Change the returns-correct-charset test to use utf-8 rather than utf8 becuase the second (at least on my system) is filtered out as a charset that isn't available.

Deraen commented 7 years ago

https://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html confirms that charset name in jave always has the dash. And so does https://tools.ietf.org/html/rfc5987

Thanks