> +
> +import org.jclouds.http.HttpException;
> +import org.jclouds.http.HttpRequest;
> +import org.jclouds.http.HttpRequestFilter;
> +
> +import com.google.common.net.HttpHeaders;
> +
> +/**
> + * @author Diwaker Gupta
> + */
> +public class StripExpectHeader implements HttpRequestFilter {
> + @Override
> + public HttpRequest filter(HttpRequest request) throws HttpException {
> + return request.toBuilder().removeHeader(HttpHeaders.EXPECT).build();
> + }
> +}
It would be nice to add a unit test for this class. It is trivial enough (so
tests should be trivial too), but this will help preventing issues if this
filter is refactored (tests are specially important in jclouds-core).
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/65/files#r5128485