Fix trailing slash for PUT operations