Commit Graph

1776 Commits

Author SHA1 Message Date
Will Coster
d60257e767 Do not send Proxy-Agent in CONNECT responses
Sending any headers at all in response to a CONNECT request breaks
proxying Android emulators on all non-80 ports.

Issue: #783
2016-02-13 16:16:12 -08:00
Guillem Anguera
195ea8e15a Send password_manager as a general application setting instead of per handler 2016-02-12 23:30:42 +01:00
Guillem Anguera
5306523446 Added Basic Auth support for MITMWeb interface 2016-02-11 00:14:38 +01:00
Maximilian Hils
678bf6b793 Merge branch 'master' of https://github.com/mitmproxy/mitmproxy 2016-02-10 17:04:37 +01:00
Maximilian Hils
d1a617be85 fix #925 2016-02-10 17:03:40 +01:00
Maximilian Hils
324184a25a Merge pull request #916 from dufferzafar/export-code
Export any flow request as Python code
2016-02-10 16:05:03 +01:00
Shadab Zafar
33c514e2a7 Use textwrap.dedent in flow_export.python_code too 2016-02-10 14:13:32 +05:30
Thomas Kriechbaumer
d5aa4f017d fix syntax 2016-02-08 20:06:33 +01:00
Thomas Kriechbaumer
bee1201918 fix #920
This might be implemented by hyper-h2 in the future.
2016-02-08 19:41:11 +01:00
Shadab Zafar
3374be9f4b Move exporters to a separate file 2016-02-08 20:18:25 +05:30
Maximilian Hils
bdb763d9cf make stateobject simpler and stricter 2016-02-08 04:19:25 +01:00
Maximilian Hils
e9934cc008 simplify state management 2016-02-08 02:10:10 +01:00
Maximilian Hils
cd744592f6 remove duplicate code 2016-02-08 01:11:52 +01:00
Maximilian Hils
2654cd87af fix #876 2016-02-08 01:06:18 +01:00
Maximilian Hils
b0477fd8c9 http2: indicate http version in the ui 2016-02-08 00:45:35 +01:00
Maximilian Hils
370a0f91c1 http2: fix http_version 2016-02-08 00:45:19 +01:00
Maximilian Hils
c8d2876f23 raise error if --http2 is specified, but the OpenSSL version doesn't support it 2016-02-08 00:44:38 +01:00
Maximilian Hils
218e66cb32 removed unused parameter 2016-02-08 00:43:20 +01:00
Shadab Zafar
545014dcb6 Export any flow as Python code, not just GET
The generic code idea was taken from Postman's code export:
https://www.getpostman.com/
2016-02-06 00:41:57 +05:30
Shadab Zafar
9efda4d138 Refactor copy_as_python_code
Make it easier to support other HTTP request types
2016-02-06 00:41:01 +05:30
Maximilian Hils
a4a8b38dc8 simplify setup.py 2016-02-04 18:37:58 +01:00
Maximilian Hils
375dbe0703 always add common name as subjectAltName 2016-02-04 18:16:23 +01:00
Maximilian Hils
69df00c19f remove debug output 2016-02-04 09:52:29 +01:00
Maximilian Hils
547dd4163e fix import 2016-02-04 09:52:29 +01:00
Maximilian Hils
9759207c8d check for channel error location 2016-02-04 09:52:29 +01:00
Thomas Kriechbaumer
cf8c063773 fix http2 race condition 2016-02-04 09:52:29 +01:00
Thomas Kriechbaumer
ca5cc34d0b cleanup 2016-02-04 09:52:29 +01:00
Maximilian Hils
68bcc82b8e do not send RST if there is not upstream stream openend yet 2016-02-04 09:52:28 +01:00
Maximilian Hils
6bc1755750 add comment that explains OrderedDict use 2016-02-04 09:52:28 +01:00
Thomas Kriechbaumer
74e62903c1 fix exception classes 2016-02-04 09:52:28 +01:00
Thomas Kriechbaumer
b007ff3f9b fix locking issues 2016-02-04 09:52:28 +01:00
Thomas Kriechbaumer
af6c257131 fix flow == None errors 2016-02-04 09:52:28 +01:00
Thomas Kriechbaumer
d8ae7c3e29 fix tests and use netlib utils 2016-02-04 09:52:28 +01:00
Thomas Kriechbaumer
f2097b47ce fix race condition during state loading
PyPy and Python2.7 might process the state attributes in different order.
2016-02-04 09:52:28 +01:00
Thomas Kriechbaumer
6d3b3994e2 code formatting 2016-02-04 09:52:28 +01:00
Thomas Kriechbaumer
64978968f2 fix authority handling 2016-02-04 09:52:27 +01:00
Thomas Kriechbaumer
44f83b5947 add more tests, improve coverage 2016-02-04 09:52:27 +01:00
Thomas Kriechbaumer
cd2b4ea058 bump h2 dependency and use latest API 2016-02-04 09:52:27 +01:00
Thomas Kriechbaumer
187691e65b remove print 2016-02-04 09:52:27 +01:00
Thomas Kriechbaumer
41f4197a0d test PushPromise support 2016-02-04 09:52:27 +01:00
Thomas Kriechbaumer
735c79a2ed increase coverage 2016-02-04 09:52:04 +01:00
Thomas Kriechbaumer
f49c1cd1c5 improve http2 header parsing 2016-02-04 09:52:03 +01:00
Thomas Kriechbaumer
a99ef584ad reuse frame reading snippet 2016-02-04 09:52:03 +01:00
Thomas Kriechbaumer
936422cd73 split files into http, http1, and http2 2016-02-04 09:52:03 +01:00
Thomas Kriechbaumer
a05a961e7f cleanup lock usage 2016-02-04 09:52:03 +01:00
Thomas Kriechbaumer
94977e0e3d remove manual settings acknowledge 2016-02-04 09:52:02 +01:00
Thomas Kriechbaumer
26b7ff9525 implemented push promise 2016-02-04 09:52:02 +01:00
Thomas Kriechbaumer
83a4439485 fix flow control on closed streams 2016-02-04 09:52:02 +01:00
Thomas Kriechbaumer
3f5e798743 fix errors in http body parsing 2016-02-04 09:52:02 +01:00
Thomas Kriechbaumer
4468fc7c2d fix private API and RstStream issues 2016-02-04 09:52:02 +01:00