Skip to content

Commit

Permalink
修正GraphQL资源文件下载
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Aug 27, 2024
1 parent cc3640c commit 4af0e48
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,11 @@ protected Response buildJaxrsPageResponse(ApiResponse<?> response, IGraphQLExecu
if (content instanceof IResource) {
IResource resource = (IResource) content;

if (resource.toFile() == null) {
File file = resource.toFile();
if (file == null) {
content = (StreamingOutput) resource::writeToStream;
} else {
content = file;
}
}

Expand Down

0 comments on commit 4af0e48

Please sign in to comment.