mailwatch / MailWatch

MailWatch for MailScanner is a web-based front-end to MailScanner
http://mailwatch.org/
GNU General Public License v2.0
115 stars 66 forks source link

Update geoip_update.php #1289

Closed HierraStrunger closed 9 months ago

HierraStrunger commented 9 months ago

Permalinks from maxmind website says: /app/geoip_download?edition_id=GeoLite2-Country&license_key=YOUR_LICENSE_KEY&suffix=tar.gz

shawniverson commented 9 months ago

@HierraStrunger Are you seeing an issue with geoip_update.php? The order of the URL parameters should not matter.

HierraStrunger commented 9 months ago

Yes, the message error is:

Error occurred while downloading GeoIP data file: Response could not be parsed

And the file is not downloaded. After change geoip_update.php, it works

endelwar commented 9 months ago

I've fixed in Request library the regex that parses HTTP/2 header, which presents a trailing space not followed by text like in HTTP 1.x