Overview
| Comment: | another round of small fixes in logic, ignored fields and caching files without known length |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
9a8a46bcf0dbe844b80ef0f6bf4835d1 |
| User & Date: | c.kworr@b84a3442-36b4-a7b2-c7ad-07429f13c525 on 2011-09-06 15:09:32.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
2011-12-14
| ||
| 08:54 | Fixed logic around old file rechecking. check-in: 8425e2e393 user: c.kworr@b84a3442-36b4-a7b2-c7ad-07429f13c525 tags: master, trunk | |
|
2011-09-06
| ||
| 15:09 | another round of small fixes in logic, ignored fields and caching files without known length check-in: 9a8a46bcf0 user: c.kworr@b84a3442-36b4-a7b2-c7ad-07429f13c525 tags: master, trunk | |
|
2011-03-06
| ||
| 09:39 | cleaning up a bit check-in: 90160dbf50 user: c.kworr@b84a3442-36b4-a7b2-c7ad-07429f13c525 tags: master, trunk | |
Changes
Modified samesite.py
from [1508505e23]
to [e5eb8d0658].
| 1 2 3 4 5 6 7 8 | - + |
|
| ︙ | |||
81 82 83 84 85 86 87 | 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | - + | 'Accept-Ranges', 'Age', 'Cache-Control', 'Connection', 'Content-Type', 'Date', 'Expires', 'Referer', 'Server', 'Via', |
| ︙ | |||
138 139 140 141 142 143 144 | 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | - + | 'Accept', 'Accept-Charset', 'Accept-Encoding', 'Accept-Language', 'Cache-Control', 'Connection', 'Content-Length', 'Cookie', 'Host', 'If-Modified-Since', 'If-Unmodified-Since', 'Referer', 'User-Agent', 'Via', |
| ︙ | |||
226 227 228 229 230 231 232 | 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 | - + | my_headers[header] = self.headers[header] needed = None if '_parts' in record and record['_parts'] != None: if config['noparts'] != 'no' or requested_ranges == None or requested_ranges == spacemap.SpaceMap(): needed = record['_parts'] else: |
| ︙ | |||
293 294 295 296 297 298 299 | 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 | + - + + + - - + + |
if reload:
print('Reloading.')
if os.access(temp_name, os.R_OK):
os.unlink(temp_name)
if os.access(file_name, os.R_OK):
os.unlink(file_name)
if 'Content-Length' in new_record:
|
| ︙ | |||
408 409 410 411 412 413 414 | 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 | + + - + + + |
self.end_headers()
if self.command in ('GET'):
if len(requested_ranges) > 0:
requested_ranges.rewind()
(start, end) = requested_ranges.pop()
else:
start = 0
# XXX ugly hack
if 'Content-Length' in index[my_path]:
|
| ︙ |