Fixed. File is not downloaded in the end, when adding a slash at the end of the path