From 0027c5f6d172d8fa7d1171d5f3fc678067f3167f Mon Sep 17 00:00:00 2001 From: Olivier Lechevalier Date: Fri, 16 Oct 2020 19:10:59 +0900 Subject: [PATCH] Fix the SetRequestHostHeader filter documentation. --- docs/src/main/asciidoc/spring-cloud-gateway.adoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/src/main/asciidoc/spring-cloud-gateway.adoc b/docs/src/main/asciidoc/spring-cloud-gateway.adoc index 14da7b9e..5c10df7b 100644 --- a/docs/src/main/asciidoc/spring-cloud-gateway.adoc +++ b/docs/src/main/asciidoc/spring-cloud-gateway.adoc @@ -1645,11 +1645,11 @@ errorMessage` : `Request size is larger than permissible limit. Request size is NOTE: The default request size is set to five MB if not provided as a filter argument in the route definition. -=== The `SetRequestHost` `GatewayFilter` Factory +=== The `SetRequestHostHeader` `GatewayFilter` Factory -There are certain situation when the host header may need to be overridden. In this situation, the `SetRequestHost` `GatewayFilter` factory can replace the existing host header with a specified vaue. +There are certain situation when the host header may need to be overridden. In this situation, the `SetRequestHostHeader` `GatewayFilter` factory can replace the existing host header with a specified vaue. The filter takes a `host` parameter. -The following listing configures a `SetRequestHost` `GatewayFilter`: +The following listing configures a `SetRequestHostHeader` `GatewayFilter`: .application.yml ==== @@ -1664,13 +1664,13 @@ spring: predicates: - Path=/headers filters: - - name: SetRequestHost + - name: SetRequestHostHeader args: host: example.org ---- ==== -The `SetRequestHost` `GatewayFilter` factory replaces the value of the host header with `example.org`. +The `SetRequestHostHeader` `GatewayFilter` factory replaces the value of the host header with `example.org`. === Modify a Request Body `GatewayFilter` Factory