aboutsummaryrefslogtreecommitdiffstats
path: root/test/netlib
Commit message (Collapse)AuthorAgeFilesLines
* add quote/unquote testsMaximilian Hils2016-07-241-2/+42
|
* remove content caching in netlib.http.MessageMaximilian Hils2016-07-231-33/+0
|
* add tests for single-element cacheMaximilian Hils2016-07-231-0/+30
|
* fix content view cache invalidationMaximilian Hils2016-07-212-5/+13
|
* console: share one ActionBar instanceAldo Cortesi2016-07-211-1/+1
| | | | | This fixes an issues where popping a view off the stack caused stale ActionBar contents to be displayed.
* Fix netlib.utils.is_valid_hostAldo Cortesi2016-07-212-0/+16
| | | | | | | | - 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.
* fix-1366Thomas Kriechbaumer2016-07-161-4/+22
|
* preserve content-type parameter orderMaximilian Hils2016-07-151-1/+3
|
* Merge remote-tracking branch 'origin/master' into message-body-encodingMaximilian Hils2016-07-157-50/+92
|\
| * Test cookies.is_expired separatelyShadab Zafar2016-07-101-0/+21
| |
| * Make escape_control_characters handle strings on Py2Shadab Zafar2016-07-091-2/+3
| |
| * tests++Maximilian Hils2016-07-071-0/+15
| |
| * py3++Maximilian Hils2016-07-072-3/+3
| |
| * py3++Maximilian Hils2016-07-071-4/+4
| |
| * sni is now str, not bytesMaximilian Hils2016-07-061-13/+13
| |
| * py3++Maximilian Hils2016-07-061-11/+4
| |
| * remove clean_bin, clarify unicode handlingMaximilian Hils2016-07-051-15/+25
| |
| * http2: test throttling at MAX_CONCURRENT_STREAMSThomas Kriechbaumer2016-07-051-5/+7
| |
* | improve message content semanticsMaximilian Hils2016-07-152-13/+73
| |
* | raise ValueError if content-encoding is invalidMaximilian Hils2016-07-041-8/+10
| |
* | tests++Maximilian Hils2016-07-021-1/+43
| |
* | message.content -> .raw_content, implement .textMaximilian Hils2016-07-022-52/+105
|/ | | | | | | | | | | | | | | This PR improves our handling of HTTP message body encodings: - The unaltered message body is now accessible as `.raw_content` - The "content-encoding"-decoded content (i.e. gzip removed) content is not `.content`, as this is what we want in 99% of the cases. - `.text` now provides the "content-encoding"-decoded and then "content-type charset"-decoded message body. - The decoded values for `.content` and `.text` are cached, so that repeated access and `x.text = x.text` is cheap. - The `decoded()` decorator is now deprecated, as we can now just use `.content`. Similarly `HTTPMessage.get_decoded_content()` is deprecated.
* minor fixesMaximilian Hils2016-07-011-5/+5
|
* py3++Maximilian Hils2016-07-011-4/+0
|
* move custom HTTP/2 stack from netlib to pathodThomas Kriechbaumer2016-06-172-544/+1
|
* Merge pull request #1253 from mhils/fix-debugAldo Cortesi2016-06-141-0/+4
|\ | | | | Fix Debug Mode on Windows
| * fix debug mode on WindowsMaximilian Hils2016-06-131-0/+4
| |
* | Fix Python3 testsAldo Cortesi2016-06-141-1/+1
| |
* | Satisfy lintAldo Cortesi2016-06-141-1/+1
| |
* | Use handlers in http2 test suiteAldo Cortesi2016-06-141-100/+100
| |
* | Start rolling out leak detection in netlibAldo Cortesi2016-06-142-211/+221
|/
* debug: On SIGUSR2, we dump tracebacks for all threads to screenAldo Cortesi2016-06-111-0/+6
|
* Improve debugging of thread and other leaksAldo Cortesi2016-06-111-0/+8
| | | | | | | - Add basethread.BaseThread that all threads outside of test suites should use - Add a signal handler to mitmproxy, mitmdump and mitmweb that dumps resource information to screen when SIGUSR1 is received. - Improve thread naming throughout to make thread dumps understandable
* debug.sysinfo: tests and coverageAldo Cortesi2016-06-111-0/+6
|
* Remove odictAldo Cortesi2016-06-092-147/+0
| | | | | | | | - Adds default implementations for _kconv and _reduce_values to MultiDict. Without these, operations fail in really, really non-obvious ways. - Replace the remaining few instances of ODict Fixes #1159
* tests++Maximilian Hils2016-06-071-1/+23
|
* Utils cleanupsAldo Cortesi2016-06-071-0/+9
| | | | | | | | - Move more stuff that belongs in netlib.human - Move some stuff to near the only use - Zap mitmproxy.utils.timestamp(). I see the rationale, but we used it interchangeably with time.time() throughout the project. Since time.time() dominates in the codebase and timestamp() is such low utility, away it goes.
* fix multidict unittestsredfast002016-06-051-2/+2
|
* Shift a bunch more string-related functions to strutilsAldo Cortesi2016-06-022-4/+23
|
* Utils reorganisation: add netlib.strutilsAldo Cortesi2016-06-022-37/+40
| | | | Extract a number of string and format-related functions to netlib.strutils.
* be more strict about module namespacesMaximilian Hils2016-05-311-2/+1
|
* http2.frame -> http2.framereaderAldo Cortesi2016-05-311-3/+3
|
* Fix test failuresAldo Cortesi2016-05-311-1/+1
|
* Satisfy flake8Aldo Cortesi2016-05-314-0/+4
|
* Unify and make symmetric pretty_size and parse_sizeAldo Cortesi2016-05-311-4/+8
|
* Move human-friendly format functions to netlib.human, remove redundant ↵Aldo Cortesi2016-05-312-7/+31
| | | | implementations
* utils.multipartdecode -> http.multipart.decodeAldo Cortesi2016-05-313-32/+33
| | | | | | also utils.parse_content_type -> http.headers.parse_content_type
* netlib.utils.get_header_tokens -> netlib.http1.read.get_header_tokensAldo Cortesi2016-05-312-12/+12
| | | | Placing this next to its only use.
* Module is part of the name - url.decode, not url.urldecodeAldo Cortesi2016-05-311-20/+20
| | | | A pattern we need to use far more often in the codebase
* Extract url functions from netlib.utils and move to netlib.http.urlAldo Cortesi2016-05-312-64/+65
|