Ensure request media-types are sane

This ensures both the Accept and Content-Type headers have
agreeable values.

Change-Id: If84c137299063884bf4c6805a0506664504862c0