Problematic is following code condition (line 173-178) which is not sufficient in case of downloading Natural Earth Dataset in WGS84 ZIP file from the URL https://zenodo.org/records/13370131/files/natural_earth_dataset.zip where the server response returns two headers (content-type: application/octet-stream and content-disposition: attachment; filename=natural_earth_dataset.zip) that identify the ZIP file.
Get server response header with Curl (see content-type: application/octet-stream and content-disposition: attachment; filename=natural_earth_dataset.zip header):
Describe the bug
Download Natural Earth Dataset in WGS84 prints error message.
To reproduce
_Download of https://zenodo.org/records/13370131/files/natural_earth_dataset.zip failed or file </tmp/grass8-test-18250/tmpds5ohiix/archive.zip> is not a ZIP file_
Expected behavior
Download Natural Earth Dataset via wxGUI should work as expected without prints error message.
Screenshots
System description
Additional context
Problematic is following code condition (line 173-178) which is not sufficient in case of downloading Natural Earth Dataset in WGS84 ZIP file from the URL https://zenodo.org/records/13370131/files/natural_earth_dataset.zip where the server response returns two headers (content-type: application/octet-stream and content-disposition: attachment; filename=natural_earth_dataset.zip) that identify the ZIP file.
https://github.com/OSGeo/grass/blob/039183d9be2c1baf6e63fc07f6554fe6c2a06276/python/grass/utils/download.py#L173-L178
Get server response header with Curl (see content-type: application/octet-stream and content-disposition: attachment; filename=natural_earth_dataset.zip header):
Server response Content-Type: application/octet-stream header RFC 2046 states in section 4.5.1:
Server response Content-Disposition header doc.