diff --git a/doc-src/02-docstyle.css b/doc-src/02-docstyle.css index ad2235e7e..855899f60 100644 --- a/doc-src/02-docstyle.css +++ b/doc-src/02-docstyle.css @@ -3,3 +3,7 @@ font-size: 1em; background: #000000; } + +pre { + color: #333; +} diff --git a/doc-src/_layout.html b/doc-src/_layout.html index 826279ef9..a4e84bcc8 100644 --- a/doc-src/_layout.html +++ b/doc-src/_layout.html @@ -24,14 +24,16 @@ $!nav("faq.html", this, state)!$
@!i[0]!@ | @!i[1]!@ |
-sudo pip install mitmproxy +## Installing the latest release + +A single command will download and install the latest release of mitmproxy, +along with all its dependencies: + ++pip install mitmproxy-## From Source +## Installing from source -- When installing from source, you will need to install the -[dependencies](@!urlTo("index.html")!@) by hand. -- Then run the following command from the base of the source distribution: +When installing from source, the easiest method is still to use pip. In this +case run: --sudo python setup.py install ++pip install /path/to/source+Note that if you're installing current git master, you will also have to +install the current git master of [netlib](http://github.com/cortesi/netlib) by +hand. ## OSX +- If you're running a Python interpreter installed with homebrew (or similar), +you may have to install some dependencies by hand. - Make sure that XCode is installed from the App Store, and that the command-line tools have been downloaded (XCode/Preferences/Downloads). -- Install __pip__ using the following command: - --sudo easy_install pip -- -- Now use __pip__ to set up the dependencies and do the install: - --sudo pip install mitmproxy -- -This procedure may vary if, for instance, you've installed Python from an -external source like [homebrew](http://mxcl.github.com/homebrew/). In that -case, the easiest way to proceed is to first install __easy_install__, then -continue as above. +- Now use __pip__ to do the installation, as above. There are a few bits of customization you might want to do to make mitmproxy -comfortable to use. At the moment, mitmproxy's color scheme is optimized for a -dark background terminal, so you probably want to change the default. You can -use the OSX open program to create a simple and effective -~/.mailcap file to view HTTP bodies: +comfortable to use on OSX. The default color scheme is optimized for a dark +background terminal, but you can select a palette for a light terminal +background with the --palette option. You can use the OSX open program +to create a simple and effective ~/.mailcap file to view request and +response bodies: -+application/*; /usr/bin/open -Wn %s audio/*; /usr/bin/open -Wn %s image/*; /usr/bin/open -Wn %s diff --git a/doc-src/proxyauth.html b/doc-src/proxyauth.html new file mode 100644 index 000000000..224b9e2d8 --- /dev/null +++ b/doc-src/proxyauth.html @@ -0,0 +1,2 @@ + +Proxy auth. diff --git a/doc-src/setheaders.html b/doc-src/setheaders.html new file mode 100644 index 000000000..d000e95b5 --- /dev/null +++ b/doc-src/setheaders.html @@ -0,0 +1,2 @@ + +Setheaders. diff --git a/libmproxy/authentication.py b/libmproxy/authentication.py index 1f1f40ae2..500ead6b8 100644 --- a/libmproxy/authentication.py +++ b/libmproxy/authentication.py @@ -12,7 +12,7 @@ class NullProxyAuth(): def clean(self, headers): """ Clean up authentication headers, so they're not passed upstream. - """ + """ pass def authenticate(self, headers): @@ -33,7 +33,7 @@ class BasicProxyAuth(NullProxyAuth): AUTH_HEADER = 'Proxy-Authorization' def __init__(self, password_manager, realm): NullProxyAuth.__init__(self, password_manager) - self.realm = realm + self.realm = realm def clean(self, headers): del headers[self.AUTH_HEADER] diff --git a/setup.py b/setup.py index 6fb25c017..9a5398be9 100644 --- a/setup.py +++ b/setup.py @@ -93,7 +93,4 @@ setup( "Topic :: Software Development :: Testing" ], install_requires=["netlib", "urwid>=1.1", "pyasn1>0.1.2", "pyopenssl>=0.12", "PIL", "lxml"], - dependency_links=[ - 'https://github.com/cortesi/netlib/tarball/master#egg=netlib-0.1' - ], )