Skip to content

Commit

Permalink
Reactive resteasy multipart should return a RestResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo gonzalez granados committed May 24, 2022
1 parent 9548b5c commit 5ed8a9a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.jboss.resteasy.reactive.MultipartForm;
import org.jboss.resteasy.reactive.RestResponse;

import io.quarkus.logging.Log;
import io.smallrye.mutiny.Uni;
Expand Down Expand Up @@ -51,10 +51,10 @@ public Uni<String> uploadMultipart(@MultipartForm FileWrapper body) {
@GET
@Produces(MediaType.MULTIPART_FORM_DATA)
@Path("/download-multipart")
public Response downloadMultipart() {
public RestResponse downloadMultipart() {
FileWrapper wrapper = new FileWrapper();
wrapper.file = FILE;
return Response.ok(wrapper).build();
return RestResponse.ok(wrapper);
}

@GET
Expand Down

0 comments on commit 5ed8a9a

Please sign in to comment.