Skip to content

Commit

Permalink
refactor null safety http method resolving for non standard method (s…
Browse files Browse the repository at this point in the history
…pring-cloud#741)

* refactor null safety http method resolving for non standard method
  • Loading branch information
artemMartynenko authored and spencergibb committed Jan 16, 2019
1 parent e313040 commit 9803a49
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {

ServerHttpRequest request = exchange.getRequest();

final HttpMethod method = HttpMethod.valueOf(request.getMethod().toString());
final HttpMethod method = HttpMethod.valueOf(request.getMethodValue());
final String url = requestUrl.toString();

HttpHeaders filtered = filterRequest(this.headersFilters.getIfAvailable(),
Expand Down Expand Up @@ -171,4 +171,5 @@ public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {

return responseFlux.then(chain.filter(exchange));
}

}

0 comments on commit 9803a49

Please sign in to comment.