Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WS UTF-8 bug workaround
def fetchList(): String = WS.url(SCHEMA_REPO + "/schema-repository.xml").get().await(5, TimeUnit.SECONDS).fold(
{ t: Throwable => log.error("Could not retrieve schema list", t); "" },
{ r: Response => r.getAHCResponse.getResponseBody("UTF-8") }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.