requests response.iter_content() gets incomplete file ( 1024MB instead of 1.5GB )?

后端 未结 3 1978
醉梦人生
醉梦人生 2021-02-13 21:46

hi i have been using this code snippet to download files from a website, so far files smaller than 1GB are all good. but i noticed a 1.5GB file is incomplete

# s         


        
3条回答
  •  没有蜡笔的小新
    2021-02-13 22:14

    If you are using Nginx as file system, you may check Nginx config file to see if you have set

    proxy_max_temp_file_size 3000m;
    

    or not.

    By default this size is 1G. So you can only get 1024MB.

提交回复
热议问题