aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Web apps to addonsAldo Cortesi2016-10-199-75/+87
| | | | | This commit removes the app registry, adds a wsgiapp addon base, and ports the onboarding app to it.
* No need for all builtins to be loaded for server testsAldo Cortesi2016-10-183-16/+21
|
* Convert flow.state to an addonAldo Cortesi2016-10-1818-136/+81
| | | | A first step, and already many things are much nicer.
* accept_addon -> resume, intercept/resume eventsAldo Cortesi2016-10-181-4/+4
|
* master.duplicate_flow -> state.duplicate_flowAldo Cortesi2016-10-183-12/+16
| | | | | | This is a pure operation on state, and doesn't belong on master. Part of prep to move state to an addon.
* Response body streaming to addonAldo Cortesi2016-10-182-12/+29
|
* fix testsMaximilian Hils2016-10-171-2/+4
|
* remove empty lines at beginning of fileThomas Kriechbaumer2016-10-1711-11/+0
|
* fix socks5 mode with tlsMaximilian Hils2016-10-161-0/+12
|
* python3: clean up super and __future__Aldo Cortesi2016-10-1721-36/+20
|
* python3: clean up class bracketsAldo Cortesi2016-10-1724-51/+51
|
* Zap object base classAldo Cortesi2016-10-1720-42/+42
|
* test & examples: zap sixAldo Cortesi2016-10-1725-123/+98
|
* scripts: keep scripts just after the ScriptLoader in addon chainAldo Cortesi2016-10-162-7/+3
| | | | | | We need scripts to run _before_ filestreamer, so we can't just add them to the end of the chain. This patch also fixes an issue that could cause scripts to be initialised un-necessarily if only the order of scripts in options changed.
* docs: overview, classes, argumentsAldo Cortesi2016-10-161-5/+2
|
* add regression test for #1605Maximilian Hils2016-10-141-0/+13
|
* certutils: cap the cert store size at 100 by defaultAldo Cortesi2016-10-051-0/+25
| | | | | | | | This should be enough to give us reuse without growing infinitely. This is part of fixing the memory situation in mitmdump. TODO: There's an opportunity here for a better algorithm, that expires certs based on least-recently-accessed time, rather than oldest generated time.
* use flt instead of filt for flowfilter expressionsThomas Kriechbaumer2016-10-041-2/+2
|
* debug: Hard exit after debug signalAldo Cortesi2016-10-041-2/+2
|
* Consolidate loggingAldo Cortesi2016-10-045-16/+31
| | | | | | - Make log event handler work - Move terminal event log into an addon - Clean various log related errors and duplications
* Clarify channel interaction patternAldo Cortesi2016-10-041-3/+2
| | | | | | | Before this patch, it wasn't clear when the arguments to an event could be modified, and when a new object should be returned. After this patch, the right thing to do is to modify the arguments in 99% of cases. The only exception to this is root_layer, for which we can find a better structure down the track.
* Add requestheaders eventAldo Cortesi2016-10-041-1/+1
| | | | HTTP1 only for now, HTTP2 coming next.
* fix flowfilter.match argsThomas Kriechbaumer2016-10-031-10/+10
|
* use flowfilter.matchThomas Kriechbaumer2016-10-031-10/+10
|
* rename mitmproxy.filt -> mitmproxy.flowfilterThomas Kriechbaumer2016-10-032-30/+30
|
* Revert "Add API to programmatically create new requests (#1534)"Maximilian Hils2016-10-021-9/+0
| | | | | This reverts commit ccbdcd684b5a49c0509610a79dad3f220962a42d, which yielded a test timeout.
* Add API to programmatically create new requests (#1534)Tyler St. Onge2016-10-011-0/+9
|
* parse_set_cookie header returns an empty list if no cookies are foundAldo Cortesi2016-09-281-3/+3
| | | | This matches parse_cookie, and is more idiomatic.
* Merge branch 'multi-cookie' of https://github.com/dufferzafar/mitmproxyAldo Cortesi2016-09-282-93/+125
|\
| * Add tests for comma separated Set-CookiesShadab Zafar2016-09-271-10/+47
| |
| * Can't have , in the sticky cookie testShadab Zafar2016-09-271-1/+0
| | | | | | | | Since we support comma separated cookies now
| * Make needed changes in testsShadab Zafar2016-09-271-30/+33
| |
| * Update cookie testsShadab Zafar2016-09-271-91/+84
| | | | | | | | | | This is needed since _read_pairs now returns a list of cookies each of which is a list of [name, value] tuples.
* | In reverse proxy mode, always send SNIRyan Laughlin2016-09-271-1/+7
|/
* update dependencies, minor fixes (#1577)Maximilian Hils2016-09-241-3/+1
|
* remove option argument for addons.add (#1576)Maximilian Hils2016-09-2414-25/+24
|
* Merge pull request #1566 from mhils/issue-1546Maximilian Hils2016-09-221-1/+2
|\ | | | | add websocket on/off switch, improve logging (fix #1546, fix #1547)
| * fix testsMaximilian Hils2016-09-221-1/+2
| |
* | scripts: cut traceback properly, fix #1467Maximilian Hils2016-09-221-3/+27
|/
* Merge pull request #1564 from mhils/issue-1554Maximilian Hils2016-09-211-0/+5
|\ | | | | Fix Response.make content-length header
| * fix Response.make content-length headerMaximilian Hils2016-09-211-0/+5
| |
* | raise TypeError on invalid header assignment, fix #1562Maximilian Hils2016-09-212-0/+11
|/
* Redesign client replayAldo Cortesi2016-09-115-60/+54
| | | | | - Move to an addon - Use a much simpler synchronisation mechanism
* Add "run_once" support to the script addon, use it in mitmproxyAldo Cortesi2016-09-111-0/+25
| | | | Fixes #1418
* options.replay_ignore* -> options.server_replay_ignore*Aldo Cortesi2016-09-101-9/+9
|
* options.nopop -> options.server_replay_nopopAldo Cortesi2016-09-101-2/+2
|
* options.rheaders -> options.server_replay_use_headersAldo Cortesi2016-09-101-1/+1
|
* options.kill -> options.replay_kill_extraAldo Cortesi2016-09-103-6/+6
|
* Roll out synchronisation for mitmproxy testsAldo Cortesi2016-09-105-179/+228
| | | | | | | | | This extends some of the work I did for pathod and netlib to the mitmproxy test suite. It also fixes what may be a leak in replays. Failing on connection leak is disabled on Windows for the moment. Fixes #1535
* Merge pull request #1532 from cortesi/playbackAldo Cortesi2016-09-074-301/+292
|\ | | | | Playback and fix construct breakage