Update beforeDownloadRequest.groovy