Fix file upload response header that causes json decode error