Created
September 8, 2012 11:15
-
-
Save manuelbernhardt/3673622 to your computer and use it in GitHub Desktop.
WS UTF-8 bug workaround
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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