application/json-home sets a new form of derived media types, but we
should be aware of it. The code is now adjusted to accept it and
anything else that startswith application/json.
Also media types are case insensitive so JSON decoding should
account for that.
We can't rely on there being only one parameter in the content-type,
so we need to do some processing to extract exactly the charset.
Thanks to @ravichandrasadineni for pointing out the problem and
providing a possible solution. This solution differs slightly from
his, but is the same in spirit.
The simple_wsgi app has been updated to return a content-type which
will exercise this code.
Fixes #66
In normal testing setups it is not possible to see the requests and
responses being made. If a test is set to 'verbose: True' then the
test request info and the httplib2 request and response data will be
produced to STDOUT.