Fix file download in XHR module.