1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

Merge pull request #895 from lohanidamodar/fix-response-filter-not-found

Avoid errors when response-format header is not available
This commit is contained in:
Eldad A. Fux 2021-02-10 21:04:29 +02:00 committed by GitHub
commit 4d355ff815
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,7 @@ App::init(function ($utopia, $request, $response, $console, $project, $user, $lo
Response::setFilter(new V06());
break;
default:
throw new Exception('No filter available for response format : '.$responseFormat, 400);
Response::setFilter(null);
}
} else {
Response::setFilter(null);