You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When updating the GeoIP database from the interface the following is output:
Downloading file, please wait...
Error occurred while downloading GeoIP data file: Response could not be parsed
Download complete, unpacking files...
GeoIP data file successfully unpacked
Process completed!
On investigation it is because the server is using the HTTP2 protocol and in mailscanner/lib/request/Request.php the returned headers are only checked for a 1.{x} response. So an error is generated.
changing line 572 in mailscanner/lib/request/Request.php from:
preg_match('#^HTTP/1.\d[ \t]+(\d+)#i', array_shift($headers), $matches);
to:
preg_match('#^HTTP[/1.\d]|[2][ \t]+(\d+)#i', array_shift($headers), $matches);
Solves this problem and allows the update to work correctly.
The text was updated successfully, but these errors were encountered:
When updating the GeoIP database from the interface the following is output:
Downloading file, please wait...
Error occurred while downloading GeoIP data file: Response could not be parsed
Download complete, unpacking files...
GeoIP data file successfully unpacked
Process completed!
On investigation it is because the server is using the HTTP2 protocol and in mailscanner/lib/request/Request.php the returned headers are only checked for a 1.{x} response. So an error is generated.
changing line 572 in mailscanner/lib/request/Request.php from:
preg_match('#^HTTP/1.\d[ \t]+(\d+)#i', array_shift($headers), $matches);
to:
preg_match('#^HTTP[/1.\d]|[2][ \t]+(\d+)#i', array_shift($headers), $matches);
Solves this problem and allows the update to work correctly.
The text was updated successfully, but these errors were encountered: