forked from Qortal/qortal
Fixed unhandled case in GET /arbitrary/{service}/{name}* endpoints
This commit is contained in:
parent
4e71ae0e59
commit
3303e41a39
@ -1057,6 +1057,10 @@ public class ArbitraryResource {
|
||||
// This is a single file resource
|
||||
filepath = files[0];
|
||||
}
|
||||
else {
|
||||
throw ApiExceptionFactory.INSTANCE.createCustomException(request, ApiError.INVALID_CRITERIA,
|
||||
"filepath is required for resources containing more than one file");
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: limit file size that can be read into memory
|
||||
|
Loading…
Reference in New Issue
Block a user