Merge pull request #18836 from spray/wip-revert-spray-json-utf8-workaround
=htp #18389 revert earlier workaround since original problem in spray-json has been fixed
This commit is contained in:
commit
2b8763dd7b
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ trait SprayJsonSupport {
|
|||
implicit def sprayJsValueUnmarshaller: FromEntityUnmarshaller[JsValue] =
|
||||
Unmarshaller.byteStringUnmarshaller.forContentTypes(`application/json`).mapWithCharset { (data, charset) ⇒
|
||||
val input =
|
||||
if (charset == HttpCharsets.`UTF-8`) ParserInput(data.utf8String)
|
||||
if (charset == HttpCharsets.`UTF-8`) ParserInput(data.toArray)
|
||||
else ParserInput(data.decodeString(charset.nioCharset.name)) // FIXME: identify charset by instance, not by name!
|
||||
JsonParser(input)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue