> +
> +import static com.google.common.net.HttpHeaders.CONTENT_LENGTH;
> +import static org.jclouds.http.HttpUtils.releasePayload;
> +
> +import java.net.URI;
> +
> +import org.jclouds.http.HttpResponse;
> +import org.jclouds.http.functions.ParseURIFromListOrLocationHeaderIf20x;
> +
> +/**
> + * Parses a single URI from a list, returning null when blob length was zero.
> + * Atmos returns "HTTP/1.1 201 null" when putting zero-length blobs.
> + *
> + * @author Andrew Gaul
> + */
> +public class ParseURIFromListOrLocationHeaderIf20xHandleZeroLength extends
> ParseURIFromListOrLocationHeaderIf20x {
Wow, name is a bit of a mouthful :-( It really is still
`ParseURIFromListOrLocationHeaderIf20x`, but I can see if we don't want the
same name but then in a different package, too. "HandleZeroLength", though, is
_not_ what the response parser does, really - it handles "201null", no?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/172/files#r6843993