From 9ffd64450284da1d9fd6a99fa3d86571536b9efb Mon Sep 17 00:00:00 2001 From: Romain Gonord Date: Mon, 28 Nov 2016 15:40:46 +0800 Subject: [PATCH] fix typo in the documentation (#495) Use replaceHeader instead of header in the example. --- core/src/main/java/feign/RequestInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/feign/RequestInterceptor.java b/core/src/main/java/feign/RequestInterceptor.java index 7378bcaa..c0864dec 100644 --- a/core/src/main/java/feign/RequestInterceptor.java +++ b/core/src/main/java/feign/RequestInterceptor.java @@ -23,7 +23,7 @@ package feign; * For example:
*
  * public void apply(RequestTemplate input) {
- *     input.replaceHeader("X-Auth", currentToken);
+ *     input.header("X-Auth", currentToken);
  * }
  * 
*

Configuration

{@code RequestInterceptors} are configured via {@link