aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #1306 from mitmproxy/message-body-encodingMaximilian Hils2016-07-165-93/+219
|\ \ | | | | | | Improve Message Body Encoding
| * | preserve content-type parameter orderMaximilian Hils2016-07-151-1/+3
| | |
| * | Merge remote-tracking branch 'origin/master' into message-body-encodingMaximilian Hils2016-07-1557-956/+1395
| |\|
| * | 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
| | |
| * | 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.
* | | replacehooks -> addonAldo Cortesi2016-07-164-61/+62
| |/ |/| | | | | | | Also fixes a bug in header replacements in netlib that resulted in a mutable multidict.
* | add_event -> add_log throughout projectAldo Cortesi2016-07-164-4/+5
| | | | | | | | | | "Event" is terribly over-loaded in the project, and "log" is straight-forward and self-explanatory.
* | Zap unused test scriptsAldo Cortesi2016-07-1511-59/+9
| |
* | Script cleanupsAldo Cortesi2016-07-152-4/+67
| | | | | | | | | | | | - Preserve script order on config change - Prohibit script duplicates (i.e. identical script + args) - Various cleanups and tweaks
* | Fix HAR extractorAldo Cortesi2016-07-151-3/+4
| | | | | | | | Thanks to @mhils
* | Adjust concurrent tests for start methodAldo Cortesi2016-07-151-1/+1
| |
* | Add .start for addons and scriptsAldo Cortesi2016-07-151-2/+5
| | | | | | | | Also improve error messages, fix various unit tests
* | Fix windows parse_args testAldo Cortesi2016-07-151-1/+1
| |
* | Adjust for new options schemeAldo Cortesi2016-07-141-1/+1
| |
* | Add a tick event for addons and scripts, and use it for race-free reloadAldo Cortesi2016-07-141-0/+1
| |
* | Script cleanup: editing in console, Python3 compatibility fixesAldo Cortesi2016-07-143-13/+18
| |
* | Convert examples and example tests for new-style scriptsAldo Cortesi2016-07-143-250/+101
| | | | | | | | | | Remove the test that just loads all the example scripts for now - it's a very low-value test, and we need to think of something better.
* | Zap old scripts infrastructure, fix concurrency testsAldo Cortesi2016-07-145-24/+43
| |
* | First-order integration of scripts addonAldo Cortesi2016-07-1410-86/+197
| |
* | Re-add deletion of stickycookies (#1355)Shadab Zafar2016-07-141-0/+10
| | | | | | | | This was originally added in #1324 (fixing issue #1096) but got lost during "the big refactor" (#1352)
* | minor fixesMaximilian Hils2016-07-131-1/+1
| |
* | make options explicitMaximilian Hils2016-07-137-21/+32
| |
* | Stream to file -> addonAldo Cortesi2016-07-144-75/+104
| | | | | | | | | | This commit also clarifies a confusion about the "outfile" attribute and its use in testing in the mitmdump master.
* | Fix indeterminacy in sticky cookie testsAldo Cortesi2016-07-141-6/+9
| | | | | | | | How has this not bitten us before?
* | StickyCookies to addonAldo Cortesi2016-07-142-102/+118
| |
* | AntiCache to addonAldo Cortesi2016-07-142-10/+23
| |
* | Add a .setter helper to OptionsAldo Cortesi2016-07-141-3/+11
| | | | | | | | | | This returns a function that sets a named attribute, and is handy for event-driven code like mitmproxy console.
* | Move StickyAuth into addonAldo Cortesi2016-07-142-34/+23
| | | | | | | | | | This is the first addon that handles an OptionsError, so this commit also demos how this works in console. Handling of command-line erorrs is on its way.
* | Add the addons mechanismAldo Cortesi2016-07-134-2/+29
| | | | | | | | | | Demonstrate how it works and interacts with Options by adding our first new builtin: anticomp.
* | Basic outline of addonsAldo Cortesi2016-07-135-23/+43
| | | | | | | | | | Add addons.py, integrate with our event mechanism, and change the Master API so options is the first init argument.
* | More powerful Options schemeAldo Cortesi2016-07-131-0/+67
| | | | | | | | | | | | | | | | | | | | | | This prepares us for the addon configuration mechanism and gives us a more flexible way to handle options changes. This changeset should spell the end of the current anti-pattern in our codebase where we duplicate data out of options onto the master when mutability is needed. From now on, Options can be the one source of thruth. - Change notifications - Rollback on error
* | http2: fix race-condition in testsThomas Kriechbaumer2016-07-121-1/+1
| |
* | http2: more coverageThomas Kriechbaumer2016-07-101-19/+201
| |
* | http2: simplify test classThomas Kriechbaumer2016-07-101-65/+22
| |
* | Remove redundant testsShadab Zafar2016-07-101-12/+0
| |
* | Test cookies.is_expired separatelyShadab Zafar2016-07-101-0/+21
| |
* | Add tests for deletion of stickycookiesShadab Zafar2016-07-091-2/+26
| |
* | Make escape_control_characters handle strings on Py2Shadab Zafar2016-07-091-2/+3
| |
* | Set verbosity & flow_detail to 0Shadab Zafar2016-07-091-0/+12
| |
* | py3++Shadab Zafar2016-07-091-18/+23
| |
* | Merge pull request #1327 from mitmproxy/remove-script-contextMaximilian Hils2016-07-0815-75/+68
|\ \ | | | | | | Remove script context
| * | move script context to mitmproxy.ctxMaximilian Hils2016-07-083-12/+12
| | |
| * | remove script contextsMaximilian Hils2016-07-075-48/+38
| | |
| * | remove context from all scriptsMaximilian Hils2016-07-0710-27/+30
| | |
* | | py3++Maximilian Hils2016-07-082-1/+5
| | |
* | | Updated coding style and modified flow format compat test to use v0.11 and ↵jpkrause2016-07-085-72/+2
|/ / | | | | | | v0.10 dump files
* | tests++Maximilian Hils2016-07-071-0/+15
| |