Fixed mismatched var names (consumes vs contentType)

'consumes' was not defined in the scope but used, whereas 'contentType' was defined but not used.