Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | message.content -> .raw_content, implement .text | Maximilian Hils | 2016-07-02 | 5 | -100/+202 |
| | | | | | | | | | | | | | | | 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 fixes | Maximilian Hils | 2016-07-01 | 1 | -1/+1 |
| | |||||
* | fix tcp message handling | Maximilian Hils | 2016-07-01 | 2 | -4/+7 |
| | |||||
* | py3++ | Maximilian Hils | 2016-07-01 | 4 | -17/+17 |
| | |||||
* | Handle case when scheme is None | Shadab Zafar | 2016-07-01 | 1 | -1/+1 |
| | |||||
* | http2: improve error handling in tests | Thomas Kriechbaumer | 2016-06-22 | 1 | -1/+2 |
| | |||||
* | move custom HTTP/2 stack from netlib to pathod | Thomas Kriechbaumer | 2016-06-17 | 2 | -434/+0 |
| | |||||
* | Py3: websockets | Shadab Zafar | 2016-06-15 | 1 | -2/+2 |
| | |||||
* | Py3: fix http2 bytes issue | Shadab Zafar | 2016-06-15 | 1 | -2/+2 |
| | |||||
* | Merge pull request #1253 from mhils/fix-debug | Aldo Cortesi | 2016-06-14 | 1 | -3/+5 |
|\ | | | | | Fix Debug Mode on Windows | ||||
| * | fix debug mode on Windows | Maximilian Hils | 2016-06-13 | 1 | -3/+5 |
| | | |||||
* | | Start rolling out leak detection in netlib | Aldo Cortesi | 2016-06-14 | 2 | -0/+15 |
|/ | |||||
* | Merge branch 'master' into appveyor | Aldo Cortesi | 2016-06-12 | 1 | -2/+2 |
|\ | |||||
| * | Fold mitmproxy.version and pathod.version into netlib.version | Aldo Cortesi | 2016-06-12 | 1 | -2/+2 |
| | | |||||
* | | Make the tcp connection closer cancellable | Aldo Cortesi | 2016-06-12 | 1 | -9/+21 |
|/ | | | | And use this to make pathoc error handling more sophisticated | ||||
* | Satisfy lint | Aldo Cortesi | 2016-06-11 | 1 | -1/+5 |
| | |||||
* | debug: On SIGUSR2, we dump tracebacks for all threads to screen | Aldo Cortesi | 2016-06-11 | 1 | -1/+15 |
| | |||||
* | Zap stray semicolon | Aldo Cortesi | 2016-06-11 | 1 | -1/+1 |
| | |||||
* | debug: num_fds is posix-only | Aldo Cortesi | 2016-06-11 | 1 | -1/+2 |
| | |||||
* | debug: add OpenSSL | Aldo Cortesi | 2016-06-11 | 1 | -0/+3 |
| | |||||
* | debug: verison -> version | Aldo Cortesi | 2016-06-11 | 1 | -1/+1 |
| | | | | @resam blew our sponsorship - t-mobile is up next | ||||
* | Improve debugging of thread and other leaks | Aldo Cortesi | 2016-06-11 | 3 | -17/+86 |
| | | | | | | | - 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 coverage | Aldo Cortesi | 2016-06-11 | 1 | -6/+9 |
| | |||||
* | Add a --sysinfo flag to all daemons | Aldo Cortesi | 2016-06-11 | 1 | -0/+26 |
| | | | | | This dumps all the platform information and mitmproxy version data we'd normally need to troubleshoot an issue. | ||||
* | Remove odict | Aldo Cortesi | 2016-06-09 | 3 | -174/+13 |
| | | | | | | | | - 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 Hils | 2016-06-07 | 1 | -7/+1 |
| | |||||
* | Utils cleanups | Aldo Cortesi | 2016-06-07 | 4 | -18/+30 |
| | | | | | | | | - 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. | ||||
* | minor fixes | Maximilian Hils | 2016-06-06 | 2 | -5/+5 |
| | |||||
* | netlib: always disconnect when using context manager | Maximilian Hils | 2016-06-06 | 1 | -2/+4 |
| | |||||
* | Now keeps header capitalization | redfast00 | 2016-06-05 | 1 | -1/+1 |
| | |||||
* | Fix test that may fail due to binary header data | Aldo Cortesi | 2016-06-05 | 1 | -1/+3 |
| | | | | | | | | This is just inherently not a determinisitc test. We don't use the log HTTP interface any more, so it can just go. A more radical "solution" is inbound shortly. Fixes #1207 | ||||
* | More explicit name for the tcp.Server handler counter | Aldo Cortesi | 2016-06-03 | 1 | -2/+2 |
| | |||||
* | Make tcp.Client.connect return a context manager that closes the connection | Aldo Cortesi | 2016-06-03 | 1 | -0/+8 |
| | |||||
* | Implement a service connection handler counter, use it in Pathod test suite | Aldo Cortesi | 2016-06-03 | 1 | -7/+28 |
| | | | | Lots of failures, but that's a good thing. | ||||
* | Shift a bunch more string-related functions to strutils | Aldo Cortesi | 2016-06-02 | 2 | -15/+51 |
| | |||||
* | Utils reorganisation: add netlib.strutils | Aldo Cortesi | 2016-06-02 | 8 | -122/+128 |
| | | | | Extract a number of string and format-related functions to netlib.strutils. | ||||
* | Fix non-deterministic test failures in export | Aldo Cortesi | 2016-06-02 | 1 | -6/+18 |
| | | | | | We had various places in the code where we relied on incidental order of dict keys. Add a helper to multidict, and fix. | ||||
* | Merge pull request #1183 from mitmproxy/module-imports | Aldo Cortesi | 2016-06-01 | 1 | -1/+3 |
|\ | | | | | use module-level imports only | ||||
| * | use module-level imports only | Maximilian Hils | 2016-05-31 | 1 | -1/+3 |
| | | |||||
* | | Reorganise netlib imports according to Google Style Guide | Aldo Cortesi | 2016-06-01 | 21 | -170/+172 |
|/ | |||||
* | be more strict about module namespaces | Maximilian Hils | 2016-05-31 | 1 | -4/+4 |
| | |||||
* | Fix tests harder | Aldo Cortesi | 2016-05-31 | 1 | -2/+2 |
| | |||||
* | http2.frame -> http2.framereader | Aldo Cortesi | 2016-05-31 | 1 | -0/+0 |
| | |||||
* | Satisfy flake8 | Aldo Cortesi | 2016-05-31 | 5 | -2/+5 |
| | |||||
* | Unify and make symmetric pretty_size and parse_size | Aldo Cortesi | 2016-05-31 | 1 | -17/+16 |
| | |||||
* | Move human-friendly format functions to netlib.human, remove redundant ↵ | Aldo Cortesi | 2016-05-31 | 4 | -19/+55 |
| | | | | implementations | ||||
* | utils.multipartdecode -> http.multipart.decode | Aldo Cortesi | 2016-05-31 | 4 | -57/+61 |
| | | | | | | also utils.parse_content_type -> http.headers.parse_content_type | ||||
* | netlib.utils.get_header_tokens -> netlib.http1.read.get_header_tokens | Aldo Cortesi | 2016-05-31 | 2 | -13/+13 |
| | | | | Placing this next to its only use. | ||||
* | isascii is unused | Aldo Cortesi | 2016-05-31 | 1 | -8/+0 |
| | |||||
* | Module is part of the name - url.decode, not url.urldecode | Aldo Cortesi | 2016-05-31 | 4 | -15/+15 |
| | | | | A pattern we need to use far more often in the codebase |