fixed PUT handler

disabled empty JSON and fixed PUT always returning Bad Request