Skip to content

Commit e33c188

Browse files
committed
edit How to use for httpclient 4.2-
1 parent 87c2373 commit e33c188

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jvm/apache-httpclient/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Add `M3TracingHttpInterceptor` as request/response interceptor of HttpClient.
88

99
```java:
1010
// CAUTION: Must setup as BOTH interceptor otherwise it may cause memory leak.
11-
httpclient.addRequestInterceptor(M3TracingHttpInterceptor.INSTANCE);
12-
httpclient.addResponseInterceptor(M3TracingHttpInterceptor.INSTANCE);
11+
httpclient.addRequestInterceptor(M3TracingHttpInterceptor.getINSTANCE());
12+
httpclient.addResponseInterceptor(M3TracingHttpInterceptor.getINSTANCE());
1313
```
1414

1515
### httpclient 4.3+

0 commit comments

Comments
 (0)