Check if Content-Type is set in response, first.

This allows the Django http test client to run correctly.