PDB-473 Add a content-type verification middleware

Signed-off-by: Ken Barber <ken@bob.sh>