set content-length to 0 and remove content-type for put requests without content