title: Corrupt file after Python Requests download
body: <p>After downloading xlsx file via requests, when trying to open it I get error in excel saying <strong>file cannot be open, it is corrupt</strong>. I think this has something to do with encoding and apparent_encoding in the reqsponce. See image below, and notice the format of <strong>content</strong>.
  <a href="https://i.stack.imgur.com/xUTep.png" rel="nofollow noreferrer">Responce - corrupt</a>
  But this is just my guess. My code works well for another download from the same web, and there responce looks like this: 
  <a href="https://i.stack.imgur.com/xnkq8.png" rel="nofollow noreferrer">Responce - not corrupt</a></p>
  
  <p>This is my code:</p>
  
  <pre><code>resp1 = requests.get(url_full, headers=task, verify=False)
  
  
  
  #file_name = resp1.json()['fileName']
  file_name = pack + '-' + date_str + '.xlsx'
  with open(path + file_name, 'wb') as f:
          #for chunk in resp.iter_content(chunk_size=1024):
              #shutil.copyfileobj(BytesIO(resp.content), f)
          f.write(resp1.content)
  f.close()
  </code></pre>
  
  <p>Thank you for your help! </p>