1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-22 03:21:42 +01:00
pywb/pywb/__init__.py
Ilya Kreymer e1e8917bc3
live rewriting/utf-8 headers: fix for sites that have utf-8 in headers despite standard (#402)
- 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
2018-10-26 15:06:59 -07:00

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