Fixed mismatched var names (consumes vs contentType)

Consumes was not defined in the scope but use, where as content-
Type was defined but not used.
Merge pull request #108 from oztu/global_var_fix

Fixed mismatched var names (consumes vs contentType)