Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #1306 from mitmproxy/message-body-encoding | Maximilian Hils | 2016-07-16 | 7 | -113/+280 |
|\ | | | | | Improve Message Body Encoding | ||||
| * | preserve content-type parameter order | Maximilian Hils | 2016-07-15 | 1 | -1/+2 |
| | | |||||
| * | Merge remote-tracking branch 'origin/master' into message-body-encoding | Maximilian Hils | 2016-07-15 | 13 | -95/+205 |
| |\ | |||||
| * | | improve message content semantics | Maximilian Hils | 2016-07-15 | 3 | -57/+98 |
| | | | |||||
| * | | raise ValueError if content-encoding is invalid | Maximilian Hils | 2016-07-04 | 3 | -17/+43 |
| | | | |||||
| * | | tests++ | Maximilian Hils | 2016-07-02 | 1 | -3/+3 |
| | | | |||||
| * | | make the linter happy | Maximilian Hils | 2016-07-02 | 1 | -1/+1 |
| | | | |||||
| * | | 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. | ||||
* | | | replacehooks -> addon | Aldo Cortesi | 2016-07-16 | 1 | -2/+2 |
| |/ |/| | | | | | | | Also fixes a bug in header replacements in netlib that resulted in a mutable multidict. | ||||
* | | Convert examples and example tests for new-style scripts | Aldo Cortesi | 2016-07-14 | 1 | -0/+7 |
| | | | | | | | | | | 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. | ||||
* | | fix sysinfo for py3 | Thomas Kriechbaumer | 2016-07-10 | 1 | -1/+1 |
| | | |||||
* | | Test cookies.is_expired separately | Shadab Zafar | 2016-07-10 | 1 | -4/+9 |
| | | |||||
* | | Move cookie expiry detection to separate function | Shadab Zafar | 2016-07-09 | 1 | -1/+23 |
| | | |||||
* | | Make escape_control_characters handle strings on Py2 | Shadab Zafar | 2016-07-09 | 1 | -2/+2 |
| | | |||||
* | | strutils.hexdump returns native_strings | Shadab Zafar | 2016-07-09 | 1 | -1/+1 |
| | | |||||
* | | fix #1314 | Maximilian Hils | 2016-07-08 | 1 | -20/+23 |
| | | |||||
* | | fix tests | Maximilian Hils | 2016-07-07 | 1 | -0/+1 |
| | | |||||
* | | tests++ | Maximilian Hils | 2016-07-07 | 1 | -1/+1 |
| | | |||||
* | | py3++ | Maximilian Hils | 2016-07-07 | 3 | -1/+23 |
| | | |||||
* | | sni is now str, not bytes | Maximilian Hils | 2016-07-06 | 2 | -5/+3 |
| | | |||||
* | | py3++, multidict fixes | Maximilian Hils | 2016-07-06 | 3 | -20/+19 |
| | | | | | | | | | | | | | | | | | | | | | | | | This commit improves Python 3 compatibility and fixes two multidict issues: 1. Headers.items(multi=True) now decodes fields 2. MultiDict.clear(item) has been removed, as Python's MutableMapping already defines .clear() with different semantics. This is confusing for everyone who expects a dict-like object. `.pop("attr", None)` is not fantastic, but it's the Python way to do it. | ||||
* | | Merge pull request #1319 from mitmproxy/fix-py27-encoding-issues | Maximilian Hils | 2016-07-06 | 1 | -2/+2 |
|\ \ | | | | | | | Fix pathod log encoding | ||||
| * | | fix pathod log encoding | Maximilian Hils | 2016-07-06 | 1 | -2/+2 |
| | | | |||||
* | | | py3++ | Maximilian Hils | 2016-07-06 | 1 | -16/+9 |
|/ / | |||||
* | | Merge pull request #1315 from mitmproxy/better-unicode-handling | Maximilian Hils | 2016-07-05 | 2 | -29/+53 |
|\ \ | | | | | | | remove clean_bin, clarify unicode handling | ||||
| * | | remove clean_bin, clarify unicode handling | Maximilian Hils | 2016-07-05 | 2 | -29/+53 |
| | | | |||||
* | | | Merge pull request #1297 from dufferzafar/py3-flow-export | Maximilian Hils | 2016-07-05 | 1 | -4/+4 |
|\ \ \ | |/ / |/| | | Python 3 - test_flow_export | ||||
| * | | netlib: condition on PY2 rather than on PY3 | Shadab Zafar | 2016-07-02 | 1 | -4/+4 |
| |/ | | | | | | | Let's just hope PY4 doesn't break this! | ||||
* | | py3: fix bytes vs. str | Thomas Kriechbaumer | 2016-07-03 | 1 | -4/+4 |
| | | |||||
* | | h2: move header parsing to netlib | Shadab Zafar | 2016-07-03 | 2 | -0/+39 |
|/ | |||||
* | 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 |