michaelklishin/langohr — pull request #44 by smee (2014-02-06 09:50:54+00:00)
Title: Handle non-json responses: Return body as string

Right now whenever I try to access non existing resources via the http management api the json decoder throws an exception since he tries to parse html as json. I think we should only parse json if the content type suggests so and return the body string otherwise.

What do you think?