fix not to touch content_type when posting a buffer

“is(data).a(Object)” returns true when “data” is a Buffer. And
previous code is resetting type as “form” if the type is not set to
“json”.

This commit patches to check a Buffer correctly with
“Buffer.isBuffer” method.