Phil Webb opened SPR-17470 and commented
See this issue for some background.
Currently the BasicAuthenticationInterceptor class is a ClientHttpRequestInterceptor which causes the entire body to be read into a byte array and can cause OutOfMemoryError errors. I've managed to work around the issue by using a AbstractClientHttpRequestFactoryWrapper, but it would be really nice if there was a better way to do this. Perhaps we can create an alternative ClientHttpRequestInterceptor that can be used when only headers need to be changed.
Reference URL: spring-attic/artifactory-resource#27
Phil Webb opened SPR-17470 and commented
See this issue for some background.
Currently the
BasicAuthenticationInterceptorclass is aClientHttpRequestInterceptorwhich causes the entire body to be read into a byte array and can causeOutOfMemoryErrorerrors. I've managed to work around the issue by using a AbstractClientHttpRequestFactoryWrapper, but it would be really nice if there was a better way to do this. Perhaps we can create an alternativeClientHttpRequestInterceptorthat can be used when only headers need to be changed.Reference URL: spring-attic/artifactory-resource#27