aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1426 from mhils/query-encodingMaximilian Hils2016-07-243-19/+52
|\ | | | | Fix query/path_components encoding
| * improve query/path_components getter/setterMaximilian Hils2016-07-243-19/+52
| |
* | silence test warningsMaximilian Hils2016-07-241-0/+2
|/
* remove content caching in netlib.http.MessageMaximilian Hils2016-07-231-84/+31
|
* add single-element cache for netlib.encodingMaximilian Hils2016-07-231-8/+39
|
* Merge pull request #1402 from mhils/console-fixesMaximilian Hils2016-07-231-0/+1
|\ | | | | minor fixes
| * fix test_view_urlencodedMaximilian Hils2016-07-231-0/+1
| |
* | improve dumper addon text alignment (#1415)Maximilian Hils2016-07-231-2/+1
|/
* fix content view cache invalidationMaximilian Hils2016-07-212-9/+3
|
* Fix netlib.utils.is_valid_hostAldo Cortesi2016-07-211-2/+2
| | | | | | | | - 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.
* minor fixesMaximilian Hils2016-07-191-2/+2
|
* fix-1366Thomas Kriechbaumer2016-07-161-3/+2
|
* Merge pull request #1306 from mitmproxy/message-body-encodingMaximilian Hils2016-07-167-113/+280
|\ | | | | Improve Message Body Encoding
| * preserve content-type parameter orderMaximilian Hils2016-07-151-1/+2
| |
| * Merge remote-tracking branch 'origin/master' into message-body-encodingMaximilian Hils2016-07-1513-95/+205
| |\
| * | improve message content semanticsMaximilian Hils2016-07-153-57/+98
| | |
| * | raise ValueError if content-encoding is invalidMaximilian Hils2016-07-043-17/+43
| | |
| * | tests++Maximilian Hils2016-07-021-3/+3
| | |
| * | make the linter happyMaximilian Hils2016-07-021-1/+1
| | |
| * | message.content -> .raw_content, implement .textMaximilian Hils2016-07-025-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 -> addonAldo Cortesi2016-07-161-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 scriptsAldo Cortesi2016-07-141-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 py3Thomas Kriechbaumer2016-07-101-1/+1
| |
* | Test cookies.is_expired separatelyShadab Zafar2016-07-101-4/+9
| |
* | Move cookie expiry detection to separate functionShadab Zafar2016-07-091-1/+23
| |
* | Make escape_control_characters handle strings on Py2Shadab Zafar2016-07-091-2/+2
| |
* | strutils.hexdump returns native_stringsShadab Zafar2016-07-091-1/+1
| |
* | fix #1314Maximilian Hils2016-07-081-20/+23
| |
* | fix testsMaximilian Hils2016-07-071-0/+1
| |
* | tests++Maximilian Hils2016-07-071-1/+1
| |
* | py3++Maximilian Hils2016-07-073-1/+23
| |
* | sni is now str, not bytesMaximilian Hils2016-07-062-5/+3
| |
* | py3++, multidict fixesMaximilian Hils2016-07-063-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-issuesMaximilian Hils2016-07-061-2/+2
|\ \ | | | | | | Fix pathod log encoding
| * | fix pathod log encodingMaximilian Hils2016-07-061-2/+2
| | |
* | | py3++Maximilian Hils2016-07-061-16/+9
|/ /
* | Merge pull request #1315 from mitmproxy/better-unicode-handlingMaximilian Hils2016-07-052-29/+53
|\ \ | | | | | | remove clean_bin, clarify unicode handling
| * | remove clean_bin, clarify unicode handlingMaximilian Hils2016-07-052-29/+53
| | |
* | | Merge pull request #1297 from dufferzafar/py3-flow-exportMaximilian Hils2016-07-051-4/+4
|\ \ \ | |/ / |/| | Python 3 - test_flow_export
| * | netlib: condition on PY2 rather than on PY3Shadab Zafar2016-07-021-4/+4
| |/ | | | | | | Let's just hope PY4 doesn't break this!
* | py3: fix bytes vs. strThomas Kriechbaumer2016-07-031-4/+4
| |
* | h2: move header parsing to netlibShadab Zafar2016-07-032-0/+39
|/
* minor fixesMaximilian Hils2016-07-011-1/+1
|
* fix tcp message handlingMaximilian Hils2016-07-012-4/+7
|
* py3++Maximilian Hils2016-07-014-17/+17
|
* Handle case when scheme is NoneShadab Zafar2016-07-011-1/+1
|
* http2: improve error handling in testsThomas Kriechbaumer2016-06-221-1/+2
|
* move custom HTTP/2 stack from netlib to pathodThomas Kriechbaumer2016-06-172-434/+0
|
* Py3: websocketsShadab Zafar2016-06-151-2/+2
|
* Py3: fix http2 bytes issueShadab Zafar2016-06-151-2/+2
|