Merge remote-tracking branch 'upstream/master' into options

This commit is contained in:
Aldo Cortesi 2017-03-09 08:33:25 +13:00
commit 7ea171de4e
4 changed files with 29 additions and 3 deletions

View File

@ -10,6 +10,9 @@ git:
matrix: matrix:
fast_finish: true fast_finish: true
allow_failures:
- language: node_js
node_js: "node"
include: include:
- python: 3.5 - python: 3.5
env: TOXENV=lint env: TOXENV=lint
@ -47,6 +50,15 @@ matrix:
env: TOXENV=individual_coverage env: TOXENV=individual_coverage
- python: 3.5 - python: 3.5
env: TOXENV=docs env: TOXENV=docs
- language: node_js
node_js: "node"
before_install: npm install -g yarn
install: cd web && yarn
script: npm test
cache:
yarn: true
directories:
- web/node_modules
install: install:
- | - |

View File

@ -110,6 +110,20 @@ libraries. This was tested on a fully patched installation of Fedora 24.
Make sure to have an up-to-date version of pip by running ``pip3 install -U pip``. Make sure to have an up-to-date version of pip by running ``pip3 install -U pip``.
.. _install-source-opensuse:
Installation from Source on openSUSE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This was tested on a fully patched installation of openSUSE Tumbleweed.
Please note that openSUSE Leap 42.2 only comes with Python 3.4.x, whereas mitmproxy requires Python 3.5 or above.
You can check you Python version by running ``python3 --version``.
.. code:: bash
sudo zypper install python3-pip python3-devel libffi-devel openssl-devel gcc-c++
sudo pip3 install mitmproxy
.. _install-source-windows: .. _install-source-windows:

View File

@ -23,7 +23,7 @@ HTTP Request
mode if the server responds correctly. Apart from that, websocket mode if the server responds correctly. Apart from that, websocket
requests are just like any other, and all aspects of the request requests are just like any other, and all aspects of the request
can be over-ridden. can be over-ridden.
* - h\:\ :ref:`VALUE`\ =\ :ref:`VALUE`\ * - h\ :ref:`VALUE`\ =\ :ref:`VALUE`\
- Set a header. - Set a header.
* - r * - r
- Set the **raw** flag on this response. Pathod will not calculate a - Set the **raw** flag on this response. Pathod will not calculate a
@ -73,7 +73,7 @@ HTTP Response
* - m\ :ref:`VALUE` * - m\ :ref:`VALUE`
- HTTP Reason message. Automatically chosen according to the response - HTTP Reason message. Automatically chosen according to the response
code if not specified. (HTTP/1 only) code if not specified. (HTTP/1 only)
* - h\:\ :ref:`VALUE`\ =\ :ref:`VALUE`\ * - h\ :ref:`VALUE`\ =\ :ref:`VALUE`\
- Set a header. - Set a header.
* - r * - r
- Set the **raw** flag on this response. Pathod will not calculate a - Set the **raw** flag on this response. Pathod will not calculate a

View File

@ -147,7 +147,7 @@ def response(flow):
} }
if flow.server_conn.connected(): if flow.server_conn.connected():
entry["serverIPAddress"] = str(flow.server_conn.ip_address.address[0]) entry["serverIPAddress"] = str(flow.server_conn.ip_address[0])
HAR["log"]["entries"].append(entry) HAR["log"]["entries"].append(entry)