tilda-tools / tilda-php

Tilda PHP SDK / API client
0 stars 1 forks source link

Change Tilda API URL to https #1

Open fervallen opened 2 years ago

fervallen commented 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.

mxl commented 2 years ago

@fervallen Could you prepare PR?