Explorar o código

401 all auth_request that are not GET

causefx %!s(int64=7) %!d(string=hai) anos
pai
achega
66f9f3dfb8
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      api/index.php

+ 1 - 3
api/index.php

@@ -1157,9 +1157,7 @@ switch ($function) {
 				auth();
 				auth();
 				break;
 				break;
 			default:
 			default:
-				$result['status'] = 'error';
-				$result['statusText'] = 'The function requested is not defined for method: ' . $method;
-				break;
+				exit(http_response_code(401));
 		}
 		}
 		break;
 		break;
 	case 'v1_plugin':
 	case 'v1_plugin':