fix issue #1297 put with zero length payload