Closed
Description
Describe the bug
When using configuring multiple interceptors, only the last one in the config produces output.
To Reproduce
- Configure two interceptors
Unirest.config()
.interceptor(new Interceptor() {
@Override
public void onRequest(HttpRequest<?> request, Config config) {
System.out.println("Output from first interceptor");
}
}).interceptor(new Interceptor() {
@Override
public void onRequest(HttpRequest<?> request, Config config) {
System.out.println("Output from Second interceptor");
}
});
Unirest.get("https://reqres.in/api/users?page=2").asJson();
Expected behavior
Outcome from both interceptors
Output from first interceptor
Output from Second interceptor
but we only see the output from the 2nd interceptor.
Output from Second interceptor
Screenshots
If applicable, add screenshots to help explain your problem.
Environmental Data:
- Java Version - 11
- Version [e.g. 3.8.06]
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels