Wladimir J. van der Laan 5078ca4543 tests: Check Content-Type header returned from RPC server
Check the Content-Type header that is returned from the RPC server. Only
if it is `application/json` the data is supposed to be parsed as JSON.

This gives better reporting if the HTTP server happens to return an error that is
not JSON-formatted, which is the case if it happens at a lower level
before JSON-RPC kicks in.

Before: `Unexpected exception caught during testing: No JSON object could be decoded`

After: `JSONRPC error: non-JSON HTTP response with '403 Forbidden' from server`
2016-04-07 15:40:17 +02:00
..
2015-05-18 15:25:45 +02:00
2016-03-31 18:35:17 +02:00
2016-03-31 18:35:17 +02:00
2016-01-05 21:34:15 +01:00
2015-08-21 15:31:37 -04:00
2016-01-13 20:31:03 +01:00
2016-03-31 18:35:17 +02:00
2016-03-31 18:35:17 +02:00