Remove unneccesary slashes in url before sending it.