Fix support for testing HTTP POSTs with non-JSON content types.