Support optional content hash generation/checking
Add test for content-type normalization