Overview
| Comment: | capitilize header correctly |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
a2857db2b55fd9b253930d6b34b1750f |
| User & Date: | arcade@b1t.name on 2013-01-29 14:33:06.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
2013-03-13
| ||
| 17:21 | simpler way to configure hosts, more examples for Windows Update, support for unconfigured hosts check-in: 996aa0149d user: arcade@b1t.name tags: master, trunk | |
|
2013-01-29
| ||
| 14:33 | capitilize header correctly check-in: a2857db2b5 user: arcade@b1t.name tags: master, trunk | |
|
2012-08-09
| ||
| 11:30 | correct etag name check-in: b67d2538b2 user: arcade@b1t.name tags: master, trunk | |
Changes
Modified samesite.py
from [e64c01bd7e]
to [83281b8c59].
| ︙ | ︙ | |||
105 106 107 108 109 110 111 | proxy_ignored = set([ 'Accept', 'Accept-Charset', 'Accept-Encoding', 'Accept-Language', 'Cache-Control', 'Connection', 'Content-Length', 'Cookie', 'Host', 'If-Modified-Since', 'If-Unmodified-Since', 'Referer', | | | 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
proxy_ignored = set([
'Accept', 'Accept-Charset', 'Accept-Encoding', 'Accept-Language',
'Cache-Control', 'Connection', 'Content-Length', 'Cookie',
'Host',
'If-Modified-Since', 'If-Unmodified-Since',
'Referer',
'UA-CPU', 'User-Agent',
'Via',
'X-Forwarded-For', 'X-Last-HR', 'X-Last-HTTP-Status-Code', 'X-Old-UID', 'X-Removed', 'X-Real-IP', 'X-Retry-Count',
])
print('===============[ {} request ]==='.format(self.command))
for header in self.headers:
|
| ︙ | ︙ | |||
211 212 213 214 215 216 217 |
while True:
range = needed.pop()
if range[0] == None:
break
ranges += '{}-{}'.format(range[0], range[1] - 1),
my_headers['Range'] = 'bytes=' + ','.join(ranges)
| | | 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
while True:
range = needed.pop()
if range[0] == None:
break
ranges += '{}-{}'.format(range[0], range[1] - 1),
my_headers['Range'] = 'bytes=' + ','.join(ranges)
#my_headers['Accept-Encoding'] = 'gzip, compress, deflate, identity; q=0'
request = urllib.request.Request(request, headers = my_headers)
source = urllib.request.urlopen(request, timeout = 60)
new_record = {}
new_record['_parts'] = record['_parts']
headers = source.info()
|
| ︙ | ︙ |