Open fervallen opened 2 years ago
Tilda API has a hardcoded API URL in this file: https://github.com/tilda-tools/tilda-php/blob/366508cd1225a1980939adc92c2e4bbcf1d1f115/src/TildaApi.php#L25
Now Tilda added a 301 redirect from http to https. By default CURL does not follow 301 redirect in many systems and any requests to API now resulting with Invalid JSON Exception.
@fervallen Could you prepare PR?
Tilda API has a hardcoded API URL in this file: https://github.com/tilda-tools/tilda-php/blob/366508cd1225a1980939adc92c2e4bbcf1d1f115/src/TildaApi.php#L25
Now Tilda added a 301 redirect from http to https. By default CURL does not follow 301 redirect in many systems and any requests to API now resulting with Invalid JSON Exception.