Fix an issue where changing path request type did not work