aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* raise ValueError if content-encoding is invalidMaximilian Hils2016-07-041-8/+10
|
* tests++Maximilian Hils2016-07-021-1/+43
|
* make the linter happyMaximilian Hils2016-07-021-1/+0
|
* message.content -> .raw_content, implement .textMaximilian Hils2016-07-027-97/+117
| | | | | | | | | | | | | | | 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
|
* fix tcp message handlingMaximilian Hils2016-07-012-5/+4
|
* py3++Maximilian Hils2016-07-012-9/+5
|
* py3++: test/mitmproxy/test_serverShadab Zafar2016-07-013-31/+34
|
* minor fixesMaximilian Hils2016-06-281-1/+1
|
* fix mysterious tox issueMaximilian Hils2016-06-281-1/+1
|
* http2: improve error handling in testsThomas Kriechbaumer2016-06-221-12/+29
|
* py3++: mitmproxy.protocol.http1Shadab Zafar2016-06-221-4/+4
|
* mitmproxy.tnetstring -> mitmproxy.contrib.tnetstringShadab Zafar2016-06-212-2/+3
|
* Imported tests for tnetstringShadab Zafar2016-06-211-0/+141
| | | | | | | Copied from https://github.com/carlopires/tnetstring3/blob/a808f6b5ba8b64919b6b6359fd6a80bbf59e4557/tests/test_format.py Then ran pep8 etc.
* Merge pull request #1276 from dufferzafar/console-patheditMaximilian Hils2016-06-202-0/+26
|\ | | | | mitmproxy.console tests - PathEdit
| * Add dummy directory to completionShadab Zafar2016-06-201-0/+2
| |
| * Add tests for PathEditShadab Zafar2016-06-201-0/+24
| |
* | py3++Shadab Zafar2016-06-201-6/+6
| |
* | py3++Shadab Zafar2016-06-202-28/+28
|/
* py3++Thomas Kriechbaumer2016-06-192-10/+11
|
* move custom HTTP/2 stack from netlib to pathodThomas Kriechbaumer2016-06-1715-76/+91
|
* pathod tests: do not string_escape specsShadab Zafar2016-06-161-1/+1
|
* Py3: Store certificate with a byte keyShadab Zafar2016-06-161-1/+1
| | | | Had to debug this for hours!
* Py3: Use BytesIO in a pathoc testShadab Zafar2016-06-161-1/+1
|
* Py3: Fix tests by using byte literalsShadab Zafar2016-06-161-7/+7
|
* Unexpected spaces around =Shadab Zafar2016-06-151-1/+1
|
* Py3: pathocShadab Zafar2016-06-152-16/+17
|
* Py3: pathodShadab Zafar2016-06-151-3/+3
|
* Make har_extractor.py output HAR 1.2 spec-compliantTai Dickerson2016-06-141-3/+4
| | | | | | | | HAR files were failing to load in harviewer (http://www.softwareishard.com/har/viewer/) due to: - ISO 8601 dates for startedDateTime missing timezone (http://www.softwareishard.com/blog/har-12-spec/#pages) -- Used UTC but could add detection of default system timezone if desired - pages object missing pageTimings (http://www.softwareishard.com/blog/har-12-spec/#pageTimings) -- Used {} because all child fields are optional
* 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
| |
* | Merge branch 'master' into netlibraceAldo Cortesi2016-06-143-5/+7
|\ \
| * | update examples, tests, docsMaximilian Hils2016-06-133-5/+7
| |/
* | 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
|/
* Be stricter about handling connetcts in the pathoc test suiteAldo Cortesi2016-06-121-1/+7
| | | | Attempt to clear a niggling Appveyor exception buggering up our CI.
* 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 timestamps from pathoc outputAldo Cortesi2016-06-101-1/+1
| | | | | | Pathoc is an interactive tool, no need for a long leading timestamp. More generally, make timestamps optional in the logging mechanism so we can configure this with command-line flags or something down the track.
* Remove odictAldo Cortesi2016-06-093-150/+3
| | | | | | | | - 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
* Py3: Fix test_language_http2 tests by using byte literalsShadab Zafar2016-06-081-23/+23
|
* Py3: Use global next() instead of iterator methodShadab Zafar2016-06-081-2/+2
|
* Py3: Use BytesIO instead of StringIOShadab Zafar2016-06-081-8/+8
|
* If a message has been acked, all other processors are skippedAldo Cortesi2016-06-082-0/+10
| | | | | | This applies the constraint, but does to clumsily. When we've unified modules and processors it will be much nicer. We also make some exceptions for the master processors that we may want to re-evaluate down the track.
* Simplify script concurrency helpersAldo Cortesi2016-06-081-15/+11
| | | | We now have take() to prevent double-replies.
* A new interface for replyAldo Cortesi2016-06-082-7/+7
| | | | | | | | | | | Reply is now explicit - it's no longer a callable itself. Instead, we have: reply.kill() - kill the flow reply.ack() - ack, but don't send anything reply.send(message) - send a response This is part of an incremental move to detach reply from our flow objects, and unify the script and handler interfaces.
* Add reply.ack and reply.killAldo Cortesi2016-06-081-4/+3
|