fix: proxy create rule 500
This commit is contained in:
parent
9fc7c1384a
commit
8b24c44fb9
|
@ -87,7 +87,11 @@ App::post('/v1/proxy/rules')
|
||||||
$resourceInternalId = $function->getInternalId();
|
$resourceInternalId = $function->getInternalId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
$domain = new Domain($domain);
|
$domain = new Domain($domain);
|
||||||
|
} catch (Exception) {
|
||||||
|
throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Invalid domain. Domain may not start with http:// or https://.');
|
||||||
|
}
|
||||||
|
|
||||||
$ruleId = ID::unique();
|
$ruleId = ID::unique();
|
||||||
$rule = new Document([
|
$rule = new Document([
|
||||||
|
|
Loading…
Reference in a new issue