@@ -72,7 +72,7 @@ get_redirected(char *url, char* newUrl)
7272 /* redirect loading images if set */
7373 if (args .useEndpointLoadingScreen && strstr (url , "assets/img" ) == url ) {
7474 char * rest = url + strlen ("assets/img" );
75- snprintf (newUrl , MAX_URL_LENGTH , "http ://%s/launcher/loading%s" , args .endpointHost , rest );
75+ snprintf (newUrl , MAX_URL_LENGTH , "https ://%s/launcher/loading%s" , args .endpointHost , rest );
7676 return ;
7777 }
7878
@@ -434,10 +434,10 @@ init_request(Request *req)
434434 if (args .endpointHost != NULL ) {
435435 fileExists = GetFileAttributesA (req -> url ) != INVALID_FILE_ATTRIBUTES ;
436436 if (!fileExists ) {
437- snprintf (endpointUrl , MAX_URL_LENGTH , "http ://%s/%s" , args .endpointHost , fileName );
437+ snprintf (endpointUrl , MAX_URL_LENGTH , "https ://%s/%s" , args .endpointHost , fileName );
438438 /* need to crack the URL again post-fmt */
439439 if (InternetCrackUrlA (endpointUrl , strlen (endpointUrl ), 0 , & urlComponents )) {
440- logmsg ("checking endpoint for %s (http://%s/%s )\n" , fileName , args . endpointHost , fileName );
440+ logmsg ("checking endpoint for %s (%s )\n" , fileName , endpointUrl );
441441 req -> source = REQ_SRC_HTTP ;
442442 init_request_http (req , hostname , filePath , urlComponents .nScheme , urlComponents .nPort );
443443 return ;
0 commit comments