mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 18:03:50 +00:00
minor fixes
This commit is contained in:
parent
7cae0c268f
commit
f7d4319c5a
@ -12,7 +12,6 @@ addons:
|
||||
|
||||
env:
|
||||
global:
|
||||
- TOXENV=py
|
||||
- CI_DEPS=codecov>=2.0.5
|
||||
- CI_COMMANDS=codecov
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
from __future__ import absolute_import, print_function, division
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
from watchdog.events import RegexMatchingEventHandler
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
def tcp_message(ctx, flow):
|
||||
message = flow.messages[-1]
|
||||
if not message.from_client:
|
||||
message.content = message.content.replace("foo", "bar")
|
||||
message.content = message.content.replace(b"foo", b"bar")
|
||||
|
1
tox.ini
1
tox.ini
@ -17,6 +17,7 @@ commands =
|
||||
[testenv:py35]
|
||||
setenv =
|
||||
TESTS = test/netlib test/pathod/ test/mitmproxy/script test/mitmproxy/test_contentview.py test/mitmproxy/test_custom_contentview.py test/mitmproxy/test_app.py test/mitmproxy/test_controller.py test/mitmproxy/test_fuzzing.py test/mitmproxy/test_script.py test/mitmproxy/test_web_app.py test/mitmproxy/test_utils.py test/mitmproxy/test_stateobject.py test/mitmproxy/test_cmdline.py test/mitmproxy/test_contrib_tnetstring.py test/mitmproxy/test_proxy.py test/mitmproxy/test_protocol_http1.py test/mitmproxy/test_platform_pf.py
|
||||
HOME = {envtmpdir}
|
||||
|
||||
[testenv:docs]
|
||||
basepython = python
|
||||
|
Loading…
Reference in New Issue
Block a user