read corrent Content-Type value for PUT requests, really closes #931
merge [3717/branches/0.11], refs #931