Samesite - proxy that can cache partial transfers

Check-in [7ff9724ae4]
anonymous

Check-in [7ff9724ae4]

Overview
Comment:one more header, python3.3
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256: 7ff9724ae40000d6917202a1169e52790da049fc6641d3241215ee04767bbefe
User & Date: arcade@b1t.name on 2013-08-14 08:54:05.000
Other Links: branch diff | manifest | tags
Context
2013-08-23
12:00
better error handling check-in: 6cf3431e69 user: arcade@b1t.name tags: master, trunk
2013-08-14
08:54
one more header, python3.3 check-in: 7ff9724ae4 user: arcade@b1t.name tags: master, trunk
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
Changes
1
2
3
4
5
6
7
8
#!/usr/bin/env python3.2

import argparse, os
parser = argparse.ArgumentParser()
parser.add_argument('-c', '--config', dest = 'config', help = 'config file location', metavar = 'FILE', default = 'samesite.conf')
args = parser.parse_args()
assert os.access(args.config, os.R_OK), "Fatal error: can't read {}".format(args.config)

|







1
2
3
4
5
6
7
8
#!/usr/bin/env python3.3

import argparse, os
parser = argparse.ArgumentParser()
parser.add_argument('-c', '--config', dest = 'config', help = 'config file location', metavar = 'FILE', default = 'samesite.conf')
args = parser.parse_args()
assert os.access(args.config, os.R_OK), "Fatal error: can't read {}".format(args.config)

101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
		else:
			ignore_fields.add('ETag')

		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))







|







101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
		else:
			ignore_fields.add('ETag')

		proxy_ignored = set([
			'Accept', 'Accept-Charset', 'Accept-Encoding', 'Accept-Language',
			'Cache-Control', 'Connection', 'Content-Length', 'Cookie',
			'Host',
			'If-Modified-Since', 'If-None-Match', '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))