Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

range support

  • Loading branch information...
commit 7bec76d98507967c468fd67f00683ff69bf7b1f4 1 parent f315a17
Francisco Treacy authored
2  spec/batch_http.coffee
View
@@ -191,6 +191,8 @@ module.exports =
'gives back a 404': (err, data) ->
assert.equal err?.statusCode, 404
+ # TODO test range get - once we can list keys in luwak, to be able to remove the test doc later
+
'getting a file stored in luwak':
topic: ->
done = @callback
5 src/http_meta.coffee
View
@@ -12,7 +12,9 @@ class Meta extends CoreMeta
'content-type': 'contentType' # binary depends on the contentType
'x-riak-vclock': 'vclock'
'last-modified': 'lastMod'
- etag: 'etag'
+ 'etag': 'etag'
+ 'content-range': 'contentRange'
+ 'accept-ranges': 'acceptRanges'
# other response info:
# statusCode, X-Riak-Meta-* (=> usermeta), link (=> links) Location (=> key)
@@ -48,6 +50,7 @@ class Meta extends CoreMeta
host: 'Host'
clientId: 'X-Riak-ClientId'
vclock: 'X-Riak-Vclock'
+ range: 'Range'
# lastMod: 'If-Modified-Since' # check possible bug with these
# etag: 'If-None-Match' # check possible bug with these
3  src/meta.coffee
View
@@ -160,6 +160,9 @@ Meta.riakProperties = [
'clientId' # both
'returnbody' # both
'vtag' # both
+ 'range'
+ 'contentRange'
+ 'acceptRanges'
]
# Defaults for Meta properties
Please sign in to comment.
Something went wrong with that request. Please try again.