From afe76b79d2283614e3236ca65fbb0a7a8bd14ea7 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Tue, 5 Apr 2022 19:28:23 +0200 Subject: [PATCH] fixed curl not working --- src/encrypter.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/encrypter.c b/src/encrypter.c index ab86c78..70169d2 100644 --- a/src/encrypter.c +++ b/src/encrypter.c @@ -21,10 +21,13 @@ encryptText(char *text, char *keyNew) CURL *curl = curl_easy_init(); FILE *fileBuffer = fopen("versions.json", "w"); - //DOWNLOAD versions.json + //GET versions.json curl_easy_setopt(curl, CURLOPT_URL, "https://raw.githubusercontent.com/ENDev-WHY2/WHY2-Encryption-System/c/versions.json"); curl_easy_setopt(curl, CURLOPT_WRITEDATA, fileBuffer); + //DOWNLOAD versions.json + curl_easy_perform(curl); + //CLEANUP curl_easy_cleanup(curl); fclose(fileBuffer);