Aldo Cortesi
f44dab5d26
Merge pull request #1973 from cortesi/replace
...
Revamp replacement hooks
2017-02-01 13:03:29 +13:00
Aldo Cortesi
914659e888
Regularise setheaders options
...
As per replacements:
- Make the option type a string/tuple union
- Localise parsing strictly within the addon
- Adapt the console editor (we'll find a more elegant solution later)
2017-02-01 12:22:05 +13:00
Ammonite
9e3f06b7f2
Better test
2017-01-31 23:23:13 +01:00
Aldo Cortesi
4cc75a9560
Revamp replacement hooks
...
- Replacement specifiers can be either strings or tuples. This lets us cope
gracefully with command-line parsing (and posible quick interactive
specification) without having to special-case replacement hooks, or have
knowledge of hook specification leak outside the addon. We can also now use the
same command-line spec format in config files.
- Split replacement and replacement from file into separate addons and options.
Files are now read on each replacement, so you can edit replacement files in
place without restart.
- Modernise the test suite to use addon test helpers.
TODO: editing and displaying replace-from-file in console app
2017-02-01 11:10:28 +13:00
Aldo Cortesi
02f51d043d
Merge pull request #1965 from cortesi/optname
...
Consolidate option names
2017-02-01 08:39:35 +13:00
Thomas Kriechbaumer
ff379b7665
fully test addonmanager ( #1970 )
2017-01-31 10:57:22 +01:00
Maximilian Hils
1523068b03
Merge pull request #1964 from mhils/new-contribution-docs
...
New contribution docs
2017-01-31 09:02:00 +01:00
Ammonite
e2e15df358
Add a test for the host replacement
2017-01-30 23:44:13 +01:00
Ammonite
aaff9dfd32
Reset the host header to the correct destination
2017-01-30 23:41:47 +01:00
Markus Unterwaditzer
980b8aedd3
Update shim path ( #1968 )
2017-01-30 20:07:37 +01:00
Maximilian Hils
45ace793d0
🙈
2017-01-30 19:30:35 +01:00
Maximilian Hils
4746ce939f
README: py.test -> pytest
2017-01-30 16:46:22 +01:00
Maximilian Hils
3fe2f9578a
always use 'venv' as virtualenv folder
2017-01-30 00:40:24 +01:00
Maximilian Hils
f570c57006
add contributing section to README, remove autoenv
2017-01-30 00:33:24 +01:00
Aldo Cortesi
35aff3b783
Consolidate option names
...
- Onboarding app options to onboarding*
- Console-specific options to console_*
- Web-specific options to web_*
2017-01-30 11:15:12 +13:00
Maximilian Hils
a384dea62b
rework README dev sections
2017-01-29 23:06:50 +01:00
Maximilian Hils
edb96f69f5
add contributing section that redirects to README
2017-01-29 22:10:37 +01:00
Maximilian Hils
e10fb22f9c
remove outdated testing section from docs
2017-01-29 22:09:45 +01:00
Maximilian Hils
0919e38514
remove outdated architecture section from docs
2017-01-29 22:08:57 +01:00
Ammonite
c2c6050df3
Store original host in flow metadata
2017-01-29 14:33:53 +01:00
Aldo Cortesi
695cc23696
Merge pull request #1963 from cortesi/cover
...
addons: unit tests to 100%
2017-01-29 12:04:54 +13:00
Aldo Cortesi
356c4987a2
addons: unit tests to 100%
...
This patch pushes the coverage of ./tests/mitproxy/addons to 100% of the addons
module.
2017-01-29 11:44:49 +13:00
Thomas Kriechbaumer
d24f76c98e
fix newlines on windows
2017-01-25 18:51:09 +01:00
Thomas Kriechbaumer
5549757268
fix alpn requirement in web tests
2017-01-25 18:18:18 +01:00
Thomas Kriechbaumer
3028e06fd2
simplify termlog outfile handling
2017-01-25 17:50:07 +01:00
nish21
ab45e4d183
write errors to stderr ( #1952 )
2017-01-25 17:49:56 +01:00
Maximilian Hils
e076c23f8d
Merge pull request #1957 from s4chin/add-body-filters
...
web: Add body filters
2017-01-24 17:03:09 +01:00
Sachin Kelkar
15482e3242
web: Add body filters
2017-01-24 21:28:07 +05:30
Thomas Kriechbaumer
acfd548fa2
Merge pull request #1956 from Kriechi/version-string
...
improve version specifiers
2017-01-23 22:53:02 +01:00
Maximilian Hils
2eaac31344
Merge pull request #1945 from Kriechi/ca-expired
...
fix #939
2017-01-23 21:22:38 +01:00
Maximilian Hils
c512f095ae
Merge pull request #1949 from s4chin/add-src-dst-filters
...
web: Add ~src and ~dst filters
2017-01-23 21:22:21 +01:00
Maximilian Hils
c46dd1e29d
Merge pull request #1955 from Kriechi/test++
...
increase addon test coverage
2017-01-23 21:21:44 +01:00
Thomas Kriechbaumer
6a7eeef0ee
Merge branch 'offby1-patch-1'
2017-01-23 20:42:42 +01:00
Eric Hanchrow
ccb8889342
fix link to macOS and Linux binaries
2017-01-23 20:42:03 +01:00
Thomas Kriechbaumer
63beaa18ce
improve version specifiers
2017-01-23 20:33:12 +01:00
Thomas Kriechbaumer
5792e2c483
test disable_h2c_upgrade addon
2017-01-23 18:38:27 +01:00
Thomas Kriechbaumer
d674de298c
test websocket addon
2017-01-23 15:45:53 +01:00
Thomas Kriechbaumer
006eb39cc5
fix #939
2017-01-23 15:14:56 +01:00
Sachin Kelkar
9813294854
Merge NullaryExpr, UnaryExpr and BooleanLiteral
2017-01-23 18:38:49 +05:30
Maximilian Hils
86174eb6ad
Merge pull request #1950 from Kriechi/nuke-mock
...
nuke mock dependency
2017-01-23 10:19:43 +01:00
Ammonite
0ca1916f1b
Fix host extraction
2017-01-22 15:28:14 +01:00
Ammonite
e8fc4af4c6
Follow PEP-8 and add comment
2017-01-22 14:59:46 +01:00
Thomas Kriechbaumer
127c69c3ac
nuke mock dependency
...
This is already included in Python 3.3+ as unittest.mock
2017-01-22 14:11:28 +01:00
Sachin Kelkar
2b2292f432
web: Add ~src and ~dst filters
2017-01-21 21:48:49 +05:30
Ammonite
93172460aa
Add blank lines for lint
2017-01-21 09:39:34 +01:00
Ammonite
8aa250d679
Change class name
2017-01-20 23:48:26 +01:00
Ammonite
a55eba3b37
Get the the original header in requestheaders instead of request
2017-01-20 23:43:53 +01:00
Thomas Kriechbaumer
0022c810e5
replace iOS install instructions for CAs
...
fixes #1898
2017-01-20 22:04:35 +01:00
Maximilian Hils
d1ccdf41a3
Merge pull request #1947 from s4chin/add-http-tcp-filter
...
web: Add ~http and ~tcp filters
2017-01-20 18:32:59 +01:00
Sachin Kelkar
bbda53c8b6
web: Add ~http and ~tcp filters
2017-01-20 22:53:37 +05:30