Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add escape_single_quotes=False arg to bytes_to_escaped_str | Maximilian Hils | 2016-07-29 | 1 | -1/+4 |
| | |||||
* | add quote/unquote tests | Maximilian Hils | 2016-07-24 | 1 | -2/+42 |
| | |||||
* | remove content caching in netlib.http.Message | Maximilian Hils | 2016-07-23 | 1 | -33/+0 |
| | |||||
* | add tests for single-element cache | Maximilian Hils | 2016-07-23 | 1 | -0/+30 |
| | |||||
* | fix content view cache invalidation | Maximilian Hils | 2016-07-21 | 2 | -5/+13 |
| | |||||
* | console: share one ActionBar instance | Aldo Cortesi | 2016-07-21 | 1 | -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_host | Aldo Cortesi | 2016-07-21 | 2 | -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-1366 | Thomas Kriechbaumer | 2016-07-16 | 1 | -4/+22 |
| | |||||
* | preserve content-type parameter order | Maximilian Hils | 2016-07-15 | 1 | -1/+3 |
| | |||||
* | Merge remote-tracking branch 'origin/master' into message-body-encoding | Maximilian Hils | 2016-07-15 | 7 | -50/+92 |
|\ | |||||
| * | Test cookies.is_expired separately | Shadab Zafar | 2016-07-10 | 1 | -0/+21 |
| | | |||||
| * | Make escape_control_characters handle strings on Py2 | Shadab Zafar | 2016-07-09 | 1 | -2/+3 |
| | | |||||
| * | tests++ | Maximilian Hils | 2016-07-07 | 1 | -0/+15 |
| | | |||||
| * | py3++ | Maximilian Hils | 2016-07-07 | 2 | -3/+3 |
| | | |||||
| * | py3++ | Maximilian Hils | 2016-07-07 | 1 | -4/+4 |
| | | |||||
| * | sni is now str, not bytes | Maximilian Hils | 2016-07-06 | 1 | -13/+13 |
| | | |||||
| * | py3++ | Maximilian Hils | 2016-07-06 | 1 | -11/+4 |
| | | |||||
| * | remove clean_bin, clarify unicode handling | Maximilian Hils | 2016-07-05 | 1 | -15/+25 |
| | | |||||
| * | http2: test throttling at MAX_CONCURRENT_STREAMS | Thomas Kriechbaumer | 2016-07-05 | 1 | -5/+7 |
| | | |||||
* | | improve message content semantics | Maximilian Hils | 2016-07-15 | 2 | -13/+73 |
| | | |||||
* | | raise ValueError if content-encoding is invalid | Maximilian Hils | 2016-07-04 | 1 | -8/+10 |
| | | |||||
* | | tests++ | Maximilian Hils | 2016-07-02 | 1 | -1/+43 |
| | | |||||
* | | message.content -> .raw_content, implement .text | Maximilian Hils | 2016-07-02 | 2 | -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 fixes | Maximilian Hils | 2016-07-01 | 1 | -5/+5 |
| | |||||
* | py3++ | Maximilian Hils | 2016-07-01 | 1 | -4/+0 |
| | |||||
* | move custom HTTP/2 stack from netlib to pathod | Thomas Kriechbaumer | 2016-06-17 | 2 | -544/+1 |
| | |||||
* | Merge pull request #1253 from mhils/fix-debug | Aldo Cortesi | 2016-06-14 | 1 | -0/+4 |
|\ | | | | | Fix Debug Mode on Windows | ||||
| * | fix debug mode on Windows | Maximilian Hils | 2016-06-13 | 1 | -0/+4 |
| | | |||||
* | | Fix Python3 tests | Aldo Cortesi | 2016-06-14 | 1 | -1/+1 |
| | | |||||
* | | Satisfy lint | Aldo Cortesi | 2016-06-14 | 1 | -1/+1 |
| | | |||||
* | | Use handlers in http2 test suite | Aldo Cortesi | 2016-06-14 | 1 | -100/+100 |
| | | |||||
* | | Start rolling out leak detection in netlib | Aldo Cortesi | 2016-06-14 | 2 | -211/+221 |
|/ | |||||
* | debug: On SIGUSR2, we dump tracebacks for all threads to screen | Aldo Cortesi | 2016-06-11 | 1 | -0/+6 |
| | |||||
* | Improve debugging of thread and other leaks | Aldo Cortesi | 2016-06-11 | 1 | -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 coverage | Aldo Cortesi | 2016-06-11 | 1 | -0/+6 |
| | |||||
* | Remove odict | Aldo Cortesi | 2016-06-09 | 2 | -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 Hils | 2016-06-07 | 1 | -1/+23 |
| | |||||
* | Utils cleanups | Aldo Cortesi | 2016-06-07 | 1 | -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 unittests | redfast00 | 2016-06-05 | 1 | -2/+2 |
| | |||||
* | Shift a bunch more string-related functions to strutils | Aldo Cortesi | 2016-06-02 | 2 | -4/+23 |
| | |||||
* | Utils reorganisation: add netlib.strutils | Aldo Cortesi | 2016-06-02 | 2 | -37/+40 |
| | | | | Extract a number of string and format-related functions to netlib.strutils. | ||||
* | be more strict about module namespaces | Maximilian Hils | 2016-05-31 | 1 | -2/+1 |
| | |||||
* | http2.frame -> http2.framereader | Aldo Cortesi | 2016-05-31 | 1 | -3/+3 |
| | |||||
* | Fix test failures | Aldo Cortesi | 2016-05-31 | 1 | -1/+1 |
| | |||||
* | Satisfy flake8 | Aldo Cortesi | 2016-05-31 | 4 | -0/+4 |
| | |||||
* | Unify and make symmetric pretty_size and parse_size | Aldo Cortesi | 2016-05-31 | 1 | -4/+8 |
| | |||||
* | Move human-friendly format functions to netlib.human, remove redundant ↵ | Aldo Cortesi | 2016-05-31 | 2 | -7/+31 |
| | | | | implementations | ||||
* | utils.multipartdecode -> http.multipart.decode | Aldo Cortesi | 2016-05-31 | 3 | -32/+33 |
| | | | | | | 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 | -12/+12 |
| | | | | Placing this next to its only use. | ||||
* | Module is part of the name - url.decode, not url.urldecode | Aldo Cortesi | 2016-05-31 | 1 | -20/+20 |
| | | | | A pattern we need to use far more often in the codebase |