I have Grav v0.9.39 with admin panel v0.4.2 installed in a shared hosting environment. When I try to update from within the admin panel, an error message pops up reading 'Invalid Ajax response', followed by the message: Error while trying to download 'https://github.com/getgrav/grav/releases/download/0.9.40/grav-update-v0.9.40.zip'. The same applies if I try to update a single plugin or theme.
I am pretty sure the hosting should meet the requirements (PHP 5.6 etc.) and this is not related to missing permissions. Any hints?