Skip to content

Instantly share code, notes, and snippets.

@manuelbernhardt
Created September 8, 2012 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manuelbernhardt/3673622 to your computer and use it in GitHub Desktop.
Save manuelbernhardt/3673622 to your computer and use it in GitHub Desktop.
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