grab correct content-type