basho/riak_kv — pull request #241 by seancribbs (2011-10-18 19:23:38+00:00)
Title: BZ1254: Expose tombstones in siblings and link-walking queries over HTTP.

As discussed in http://issues.basho.com/1254, tombstones that have not been reaped may appear in link-walking queries but only appear to be empty objects with a Content-Type of "application/octet-stream". This adds the X-Riak-Deleted header to multipart bodies emitted by link-walking queries (and consequentially siblings that are tombstones in normal fetches).

Response after this fix:

```text
HTTP/1.1 200 OK
Server: MochiWeb/1.1 WebMachine/1.9.0 (participate in the frantic)
Expires: Tue, 18 Oct 2011 19:20:14 GMT
Date: Tue, 18 Oct 2011 19:10:14 GMT
Content-Type: multipart/mixed; boundary=ADqgQtdmA5iQgyR5UGzX6V3HZtI
Content-Length: 481

--ADqgQtdmA5iQgyR5UGzX6V3HZtI
Content-Type: multipart/mixed; boundary=Ljz1mP3hZzqPu6DH1Y4L8k7hfxy

--Ljz1mP3hZzqPu6DH1Y4L8k7hfxy
X-Riak-Vclock: a85hYGBgzGDKBVIcypz/fvrNPcuWwZTIlMfKIOotdIIvCwA=
Location: /buckets/links/keys/target
Content-Type: application/octet-stream
Link: ; rel="up"
Etag: 5bUNdzHJhZDdCr7KlWxXq
Last-Modified: Tue, 18 Oct 2011 19:10:13 GMT
X-Riak-Deleted: true

--Ljz1mP3hZzqPu6DH1Y4L8k7hfxy--

--ADqgQtdmA5iQgyR5UGzX6V3HZtI--
```