Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Satisfy flake8 | Aldo Cortesi | 2016-05-31 | 2 | -0/+2 |
| | |||||
* | utils.multipartdecode -> http.multipart.decode | Aldo Cortesi | 2016-05-31 | 2 | -0/+33 |
| | | | | | | also utils.parse_content_type -> http.headers.parse_content_type | ||||
* | netlib.utils.get_header_tokens -> netlib.http1.read.get_header_tokens | Aldo Cortesi | 2016-05-31 | 1 | -1/+12 |
| | | | | Placing this next to its only use. | ||||
* | Module is part of the name - url.decode, not url.urldecode | Aldo Cortesi | 2016-05-31 | 1 | -20/+20 |
| | | | | A pattern we need to use far more often in the codebase | ||||
* | Extract url functions from netlib.utils and move to netlib.http.url | Aldo Cortesi | 2016-05-31 | 1 | -0/+65 |
| | |||||
* | Start cleaning up netlib.utils | Aldo Cortesi | 2016-05-31 | 1 | -13/+13 |
| | | | | | - Remove http2 functions, move to http2.frame - Remove Serializable, move to netlib.basetypes | ||||
* | Improve handling of pseudo-headers | Aldo Cortesi | 2016-05-31 | 1 | -1/+4 |
| | | | | | | | | | - The canonical source for :method, :scheme and :path are the .method, .scheme and .path attributes on the request object. - These pseudo-headers are stripped after reading the request, and re-inserted just before sending. - The :authority header remains, and should be handled analagously to the Host header in HTTP1 with respect to display and user interaction. | ||||
* | fix headers order | Thomas Kriechbaumer | 2016-05-29 | 1 | -1/+1 |
| | |||||
* | more style cleanup | Thomas Kriechbaumer | 2016-05-29 | 3 | -3/+4 |
| | |||||
* | more style cleanup | Thomas Kriechbaumer | 2016-05-29 | 3 | -14/+19 |
| | | | | Use this to check: flake8 --count mitmproxy netlib pathod examples test | ||||
* | fix tests | Maximilian Hils | 2016-05-28 | 3 | -4/+4 |
| | |||||
* | cleanup imports with flake8 | Thomas Kriechbaumer | 2016-05-28 | 4 | -6/+2 |
| | |||||
* | Clean un-needed imports | Aldo Cortesi | 2016-05-21 | 1 | -2/+0 |
| | |||||
* | tests++ | Maximilian Hils | 2016-05-20 | 1 | -98/+1 |
| | |||||
* | improve MultiDict, add ImmutableMultiDict, adjust response.cookies | Maximilian Hils | 2016-05-18 | 3 | -24/+26 |
| | |||||
* | add MultiDict | Maximilian Hils | 2016-05-18 | 6 | -46/+45 |
| | | | | | | | | This commit introduces MultiDict, a multi-dictionary similar to ODict, but with improved semantics (as in the Headers class). MultiDict fixes a few issues that were present in the Request/Response API. In particular, `request.cookies["foo"] = "bar"` has previously been a no-op, as the cookies property returned a mutable _copy_ of the cookies. | ||||
* | Merge pull request #1121 from Kriechi/fix-cookies | Thomas Kriechbaumer | 2016-05-11 | 3 | -4/+13 |
|\ | | | | | improve cookie parsing | ||||
| * | improve cookie parsing | Thomas Kriechbaumer | 2016-05-10 | 3 | -4/+13 |
| | | | | | | | | | | allows '/' to be within a cookie name removes deprecated cookie getter/setter fixes #1118 | ||||
* | | actually fix tests | Maximilian Hils | 2016-05-10 | 1 | -2/+2 |
| | | |||||
* | | Revert "fix tests" | Maximilian Hils | 2016-05-10 | 1 | -2/+2 |
| | | | | | | | | This reverts commit f315dc1eb9f4701548fd57bbb38de1e9caa34e40. | ||||
* | | fix tests | Maximilian Hils | 2016-05-10 | 1 | -2/+2 |
|/ | |||||
* | fix #1120 | Maximilian Hils | 2016-05-09 | 1 | -0/+12 |
| | |||||
* | Merge branch 'better-replace' | Maximilian Hils | 2016-04-03 | 1 | -0/+19 |
|\ | |||||
| * | improve .replace() and move it into netlib | Maximilian Hils | 2016-04-02 | 1 | -0/+19 |
| | | |||||
* | | Merge pull request #1074 from mitmproxy/move-response-refresh | Thomas Kriechbaumer | 2016-04-03 | 2 | -0/+39 |
|\ \ | | | | | | | move HTTPResponse.refresh into netlib | ||||
| * | | move HTTPResponse.refresh into netlib | Maximilian Hils | 2016-04-02 | 2 | -0/+39 |
| |/ | |||||
* | | Merge pull request #1073 from mitmproxy/first-line-format | Thomas Kriechbaumer | 2016-04-03 | 1 | -6/+6 |
|\ \ | | | | | | | form_(in|out) -> first_line_format | ||||
| * | | form_(in|out) -> first_line_format | Maximilian Hils | 2016-04-02 | 1 | -6/+6 |
| |/ | |||||
* / | response.msg -> response.reason | Maximilian Hils | 2016-04-02 | 1 | -2/+2 |
|/ | |||||
* | replace CONTENT_MISSING with None. | Matthew Shao | 2016-03-26 | 1 | -3/+3 |
| | |||||
* | netlib: request.path can be None | Maximilian Hils | 2016-03-20 | 1 | -1/+6 |
| | |||||
* | Fixup more tests | Shadab Zafar | 2016-02-18 | 1 | -4/+7 |
| | |||||
* | Use host header values only when the ports match | Shadab Zafar | 2016-02-18 | 1 | -2/+6 |
| | |||||
* | Handle port numbers in host header | Shadab Zafar | 2016-02-17 | 1 | -0/+4 |
| | | | | from: https://github.com/mitmproxy/netlib/pull/121 | ||||
* | move tservers helper | Thomas Kriechbaumer | 2016-02-16 | 1 | -1/+2 |
| | |||||
* | Fix failing unit tests caused by a69d223b | Will Coster | 2016-02-15 | 1 | -4/+4 |
| | |||||
* | Merge branch 'master' of https://github.com/mitmproxy/mitmproxy | Maximilian Hils | 2016-02-16 | 1 | -2/+7 |
|\ | |||||
| * | Preserve host header when modifying request path | Will Coster | 2016-02-15 | 1 | -2/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the path_components and query setters of the Request object use the url setter under the hood. The url setter updates all parts of the URL including the host. If the host header and the host in the request URL are different (as is common when making HTTPS requests) then the host header will be updated to the value in the URL as a result of modifying the path. This change fixes this problem by modifying the query and path_components setters to not use the url setter and instead directly update the path field. | ||||
* | | temporarily silence flaky tests | Maximilian Hils | 2016-02-16 | 1 | -2/+2 |
|/ | |||||
* | fix ALPN checks | Maximilian Hils | 2016-02-15 | 1 | -2/+2 |
| | |||||
* | move tests into shared folder | Maximilian Hils | 2016-02-15 | 14 | -0/+1972 |