Browse Source

Change returned URL to HTTPS.

Domenic 2 years ago
parent
commit
75fc4c6798
1 changed files with 2 additions and 2 deletions
  1. 2 2
      get.php

+ 2 - 2
get.php

@@ -12,10 +12,10 @@ header('Access-Control-Allow-Origin: *');
 		// grab the unique code
 		$short_code = getUniqueHash($codes, $names, $long_url); //get either a new code or the allready existing one for the long url based on what is in the arrays
 		if(storeNewCode($short_code, $long_url)) { //worked
-			$short_url = 'http://s.tgxn.net/'.$short_code.'/';
+			$short_url = 'https://s.tgxn.net/'.$short_code.'/';
 			echo ''.$short_url.'';
 		} else { //failed to store
-			$short_url = 'http://s.tgxn.net/fail/';
+			$short_url = 'https://s.tgxn.net/fail/';
 			echo ''.$short_url.'';
 		}
 		die();