Browse Source

code refactoring

pull/781/head
young891221 6 years ago
parent
commit
eba10481b5
  1. 1
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/rewrite/ModifyRequestBodyGatewayFilterFactory.java

1
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/factory/rewrite/ModifyRequestBodyGatewayFilterFactory.java

@ -62,6 +62,7 @@ public class ModifyRequestBodyGatewayFilterFactory @@ -62,6 +62,7 @@ public class ModifyRequestBodyGatewayFilterFactory
return (exchange, chain) -> {
Class inClass = config.getInClass();
ServerRequest serverRequest = new DefaultServerRequest(exchange, this.messageReaders);
//TODO: flux or mono
Mono<?> modifiedBody = serverRequest.bodyToMono(inClass)
// .log("modify_request_mono", Level.INFO)

Loading…
Cancel
Save