diff --git a/index.php b/index.php index 606c21c..d7c9b01 100644 --- a/index.php +++ b/index.php @@ -73,8 +73,6 @@ // This runs the function of the path requested. !empty( $_GET["path"] ) ? $path = $_GET["path"] : die(); switch ($path) { - case "": - die(); case ".well-known/webfinger": webfinger(); case rawurldecode( $username ): @@ -256,7 +254,7 @@ curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, "POST" ); curl_setopt( $ch, CURLOPT_POSTFIELDS, json_encode($message) ); curl_setopt( $ch, CURLOPT_HTTPHEADER, $headers ); - $response = curl_exec( $ch ); + curl_exec( $ch ); // Check for errors if( curl_errno( $ch ) ) { @@ -346,7 +344,7 @@ echo <<< HTML