mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Fix add headers using interceptors
This commit is contained in:
parent
27ff4dfd23
commit
8fa6cc648b
@ -60,12 +60,12 @@ public class HttpInterceptor implements Interceptor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public HttpInterceptor addRequestInterceptor(RequestInterceptor requestInterceptor) {
|
public HttpInterceptor addRequestInterceptor(RequestInterceptor requestInterceptor) {
|
||||||
mRequestInterceptors.add(requestInterceptor);
|
mRequestInterceptors.listIterator().add(requestInterceptor);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HttpInterceptor addResponseInterceptor(ResponseInterceptor responseInterceptor) {
|
public HttpInterceptor addResponseInterceptor(ResponseInterceptor responseInterceptor) {
|
||||||
mResponseInterceptors.add(responseInterceptor);
|
mResponseInterceptors.listIterator().add(responseInterceptor);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user