Revision b44d602e
b/tools/store | ||
---|---|---|
255 | 255 |
default=False, help='show detailed output') |
256 | 256 |
parser.add_option('--range', action='store', dest='range', |
257 | 257 |
default=None, help='show range of data') |
258 |
parser.add_option('--if-range', action='store', dest='if-range', |
|
259 |
default=None, help='show range of data') |
|
258 | 260 |
parser.add_option('--if-match', action='store', dest='if-match', |
259 | 261 |
default=None, help='show output if ETags match') |
260 | 262 |
parser.add_option('--if-none-match', action='store', |
... | ... | |
281 | 283 |
headers = {} |
282 | 284 |
if self.range: |
283 | 285 |
headers['RANGE'] = 'bytes=%s' %self.range |
286 |
if getattr(self, 'if-range'): |
|
287 |
headers['IF_RANGE'] = 'If-Range:%s' % getattr(self, 'if-range') |
|
284 | 288 |
attrs = ['if-match', 'if-none-match', 'if-modified-since', |
285 | 289 |
'if-unmodified-since'] |
286 | 290 |
attrs = [a for a in attrs if getattr(self, a)] |
Also available in: Unified diff