mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-22 03:21:42 +01:00
- attempt to encode headers as utf-8 first for live web, then latin-1 (similar to warcio http header parsing) - only encode headers for py3 (in py2, headers are already bytestrings) - tests: add tests for utf-8 in header bump version to 2.1.1
13 lines
336 B
Python
13 lines
336 B
Python
__version__ = '2.1.1'
|
|
|
|
DEFAULT_CONFIG = 'pywb/default_config.yaml'
|
|
|
|
DEFAULT_RULES_FILE = 'pkg://pywb/rules.yaml'
|
|
|
|
|
|
def get_test_dir():
|
|
import os
|
|
return os.path.join(os.path.dirname(os.path.realpath(__file__)),
|
|
'..',
|
|
'sample_archive') + os.path.sep
|