mitmproxy/test/netlib
Aldo Cortesi 02acfb1242 Fix netlib.utils.is_valid_host
- Don't crash when passed an empty string. This translated into an actual core
crash, discovered while fuzzing with afl.
- Taking a slice of length one out of bytes returns an integer, so the check
for trailing period in this function never worked on Python3.
- Add unit tests.
2016-07-21 10:38:37 +12:00
..
data more style cleanup 2016-05-29 13:43:20 +02:00
http Fix netlib.utils.is_valid_host 2016-07-21 10:38:37 +12:00
tools py3++ 2016-04-13 22:34:28 -07:00
websockets more style cleanup 2016-05-29 13:43:20 +02:00
__init__.py move tests into shared folder 2016-02-15 16:34:22 +01:00
test_basetypes.py Satisfy flake8 2016-05-31 19:58:28 +12:00
test_certutils.py move tests into shared folder 2016-02-15 16:34:22 +01:00
test_debug.py fix debug mode on Windows 2016-06-13 18:06:44 -07:00
test_encoding.py message.content -> .raw_content, implement .text 2016-07-02 01:51:47 -07:00
test_human.py Utils cleanups 2016-06-07 17:12:52 +12:00
test_imports.py move tests into shared folder 2016-02-15 16:34:22 +01:00
test_multidict.py Remove odict 2016-06-09 13:28:43 +12:00
test_socks.py cleanup imports with flake8 2016-05-28 14:43:32 +02:00
test_strutils.py Make escape_control_characters handle strings on Py2 2016-07-09 13:28:20 +05:30
test_tcp.py sni is now str, not bytes 2016-07-06 21:03:17 -07:00
test_utils.py Fix netlib.utils.is_valid_host 2016-07-21 10:38:37 +12:00
test_version_check.py cleanup imports with flake8 2016-05-28 14:43:32 +02:00
test_wsgi.py more style cleanup 2016-05-29 13:43:20 +02:00
tservers.py http2: test throttling at MAX_CONCURRENT_STREAMS 2016-07-05 22:15:57 +02:00