Skip to content

Commit

Permalink
fix: feature controller (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
artsiomkorzun authored Dec 27, 2024
1 parent 8594dc7 commit 8c414cc
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public DeploymentFeatureController(Proxy proxy, ProxyContext context) {
}

public Future<?> handle(String deploymentId, Function<Deployment, String> endpointGetter, boolean requireEndpoint) {
DeploymentController.selectDeployment(context, deploymentId).map(dep -> {
// make sure request.body() called before request.resume()
return DeploymentController.selectDeployment(context, deploymentId).map(dep -> {
String endpoint = endpointGetter.apply(dep);
context.setDeployment(dep);
context.getRequest().body()
Expand All @@ -45,8 +46,6 @@ public Future<?> handle(String deploymentId, Function<Deployment, String> endpoi
handleRequestError(deploymentId, error);
return null;
});

return Future.succeededFuture();
}

@SneakyThrows
Expand Down

0 comments on commit 8c414cc

Please sign in to comment.