Thomas Kriechbaumer
47db346959
improve end_stream handling
...
To replicate requests as close as possible frame-by-frame.
This fixes an issue with broken HTTP/2 implemenation by Akamai and
Twitter, which raise an error if we send an empty DataFrame only to
indicate END_STREAM.
2016-07-05 20:14:28 +02:00
Thomas Kriechbaumer
aa1b203182
http2: implement direct handling of priority
2016-07-05 20:14:28 +02:00
Thomas Kriechbaumer
69e20b34de
bump h2 dependency
2016-07-05 20:14:28 +02:00
Jason
09ab2528f5
[web] bug fixs
2016-07-05 13:57:32 -04:00
Jason
7b543dd95c
[web] bug fix
2016-07-05 13:43:37 -04:00
Jason
db991e2bcc
[web] set display large
2016-07-05 22:49:41 +08:00
Jason
af2319aa64
[web] listen to window.onKeyDown
2016-07-05 22:28:00 +08:00
Jason
9bfde2a3ae
[web] change ducks/ui
2016-07-05 11:12:07 +08:00
Maximilian Hils
ca9de786fd
minor fix
2016-07-04 15:07:01 -07:00
Maximilian Hils
a6b3551934
raise ValueError if content-encoding is invalid
2016-07-04 13:58:09 -07:00
Thomas Kriechbaumer
23e295b37e
py3: fix bytes vs. str
2016-07-03 23:22:04 +02:00
Shadab Zafar
45aa2174e2
http2: Remove TestReadRequestConnect test
2016-07-03 21:14:01 +05:30
Shadab Zafar
d361177753
h2: move header parsing to netlib
2016-07-03 18:03:34 +05:30
Shadab Zafar
f623b3d99b
py3++: test_flow_export
2016-07-02 21:15:20 +05:30
Shadab Zafar
17b727321f
Replace map + lambda with list comprehensions
2016-07-02 21:15:20 +05:30
Shadab Zafar
5b5a3ffa8e
netlib: condition on PY2 rather than on PY3
...
Let's just hope PY4 doesn't break this!
2016-07-02 21:15:20 +05:30
Thomas Kriechbaumer
f70fd1b4b6
Merge pull request #1308 from dufferzafar/lint-hotfix
...
fix lint issues
2016-07-02 15:49:37 +02:00
Shadab Zafar
393c1d74af
fix lint issues
2016-07-02 18:56:22 +05:30
Maximilian Hils
2f8a1fd2cb
tests++
2016-07-02 03:03:42 -07:00
Maximilian Hils
d9f797e7e6
make the linter happy
2016-07-02 02:11:00 -07:00
Maximilian Hils
dbf7cb1a44
update examples: no decoded() anymore 🎉
2016-07-02 02:01:46 -07:00
Maximilian Hils
6032c4f235
message.content -> .raw_content, implement .text
...
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.
2016-07-02 01:51:47 -07:00
Maximilian Hils
2c09e0416b
minor fixes
2016-07-01 17:49:18 -07:00
Maximilian Hils
fa72462798
fix tcp message handling
2016-07-01 17:17:16 -07:00
Maximilian Hils
536c7acd13
py3++
2016-07-01 14:10:48 -07:00
Shadab Zafar
e0ed7699ca
Handle case when scheme is None
2016-07-01 10:23:04 -07:00
Shadab Zafar
268e42e55e
py3++: test/mitmproxy/test_server
2016-07-01 10:23:04 -07:00
Jason
8f73dc79c0
[web] ui ducks for content view
2016-07-01 23:44:48 +08:00
Maximilian Hils
98dc9d3d7e
Merge pull request #1302 from mhils/update-dependencies
...
Update Dependencies
2016-06-29 03:30:49 -07:00
Maximilian Hils
8366c87c57
update to latest typing
release
2016-06-29 03:03:23 -07:00
Maximilian Hils
b5a39f7d6a
bump depdencies
2016-06-29 02:08:16 -07:00
Maximilian Hils
025efc030a
Merge pull request #1301 from mitmproxy/simplify-tox
...
Simplify tox
2016-06-29 02:04:38 -07:00
Maximilian Hils
ac860c6fc0
improve docs, fix #1290
2016-06-29 00:38:11 -07:00
Maximilian Hils
b27c6ee181
appveyor: build snapshots on master
2016-06-29 00:06:04 -07:00
Maximilian Hils
6181bf978d
remove superfluous statements in tox.ini
2016-06-29 00:05:03 -07:00
Maximilian Hils
01104b4761
collect coverage on appveyor
2016-06-28 23:55:29 -07:00
Maximilian Hils
f7d4319c5a
minor fixes
2016-06-28 23:48:19 -07:00
Maximilian Hils
7cae0c268f
do not run tests in parallel
...
this makes ci very unreliable, see
https://travis-ci.org/mitmproxy/mitmproxy/jobs/140994186
I don't know of a way to fix the test collection bug.
2016-06-28 23:18:55 -07:00
Maximilian Hils
b7430c0775
Merge pull request #1296 from gzzhanghao/test
...
[web] add tests for ducks/utils
2016-06-28 23:16:18 -07:00
Maximilian Hils
a57ea27bd4
watchdog: always use PollingObserver
2016-06-28 22:09:12 -07:00
Maximilian Hils
4f7d108722
compile docs on python 3.5
2016-06-28 22:06:08 -07:00
Maximilian Hils
e012116c3b
powershell magic
2016-06-28 22:00:50 -07:00
Maximilian Hils
e6ea365f19
resilence Cryptography_locking_cb
2016-06-28 21:18:17 -07:00
Maximilian Hils
a4fde737b1
fix appveyor
2016-06-28 21:18:01 -07:00
Maximilian Hils
f69972d13d
simplify tox setup
2016-06-28 19:44:25 -07:00
Maximilian Hils
3b53d3e393
fix mysterious tox issue
2016-06-28 19:26:08 -07:00
Thomas Kriechbaumer
042bcf7cf8
fix path in appveyor
2016-06-28 20:59:53 +02:00
Thomas Kriechbaumer
3079ea7e29
update tox env on CI
2016-06-28 10:20:51 +02:00
Thomas Kriechbaumer
e0bf3c671a
fix appveyor snapshot upload
2016-06-28 10:17:50 +02:00
Maximilian Hils
9099529d17
Merge pull request #1294 from mitmproxy/appveyor-py3
...
update appveyor with tox
2016-06-28 00:40:31 -07:00