BugFix: Checking the Response Header

The former check of the response header did not accout for all possible response headers. Google for example sends a header

Content-Type: application/json; charset=utf-8

This leads to errors since the return json objects is not parsed correctly