aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
Commit message (Collapse)AuthorAgeFilesLines
* fix py3 testsMaximilian Hils2016-05-251-1/+1
|
* bytes_to_escaped_str: always escape single quotesMaximilian Hils2016-05-251-1/+7
|
* escaped_str_to_bytes: support unicode on python 2Maximilian Hils2016-05-251-1/+5
|
* Merge branch 'issue-1099'Maximilian Hils2016-05-202-0/+9
|\
| * fix #1099Maximilian Hils2016-05-202-0/+9
| |
* | A clearer implementation of MultiDictViewAldo Cortesi2016-05-215-106/+95
| | | | | | | | | | | | This makes MultiDictView work with a simple getter/setter pair, rather than using attributes with implicit leading underscores. Also move MultiDictView into multidict.py and adds some simple unit tests.
* | Merge branch 'multidict' of https://github.com/mhils/mitmproxy into ↵Aldo Cortesi2016-05-2111-214/+487
|\| | | | | | | mhils-multidict
| * tests++Maximilian Hils2016-05-203-6/+14
| |
| * fix Header docsMaximilian Hils2016-05-201-3/+3
| |
| * improve MultiDict, add ImmutableMultiDict, adjust response.cookiesMaximilian Hils2016-05-187-250/+363
| |
| * add MultiDictMaximilian Hils2016-05-1810-148/+300
| | | | | | | | | | | | | | | | 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.
* | clean up odictMaximilian Hils2016-05-181-47/+34
|/
* Sanitize Print (#1135)Maximilian Hils2016-05-121-0/+28
| | | | | | | | * sanitize strings with shell control characters * netlib: add utilities to safe-print bytes * escaped str: add TODO for multi-byte chars
* replace SimpleCookie with our own parser libThomas Kriechbaumer2016-05-111-1/+1
|
* improve cookie parsingThomas Kriechbaumer2016-05-103-37/+20
| | | | | allows '/' to be within a cookie name removes deprecated cookie getter/setter fixes #1118
* fix #1120Maximilian Hils2016-05-092-1/+3
|
* remove netlib version checkMaximilian Hils2016-04-291-14/+0
|
* fix CONNECT display in upstream modeMaximilian Hils2016-04-201-0/+2
|
* peer_address -> ip_addressMaximilian Hils2016-04-112-3/+4
|
* bump versionMaximilian Hils2016-04-091-1/+1
|
* Merge branch 'better-replace'Maximilian Hils2016-04-035-12/+77
|\
| * improve .replace() and move it into netlibMaximilian Hils2016-04-025-12/+77
| |
* | Merge pull request #1074 from mitmproxy/move-response-refreshThomas Kriechbaumer2016-04-032-0/+68
|\ \ | | | | | | move HTTPResponse.refresh into netlib
| * | move HTTPResponse.refresh into netlibMaximilian Hils2016-04-022-0/+68
| | |
* | | Merge pull request #1073 from mitmproxy/first-line-formatThomas Kriechbaumer2016-04-032-25/+4
|\ \ \ | | | | | | | | form_(in|out) -> first_line_format
| * | | form_(in|out) -> first_line_formatMaximilian Hils2016-04-022-25/+4
| |/ /
* / / response.msg -> response.reasonMaximilian Hils2016-04-021-10/+0
|/ /
* / fix #1067Maximilian Hils2016-04-021-1/+1
|/
* add Serializeable.copyMaximilian Hils2016-04-025-11/+7
|
* s/nocover/no cover/gThomas Kriechbaumer2016-03-275-25/+25
| | | according to coveralls docs
* update commentsMatthew Shao2016-03-261-4/+4
|
* replace CONTENT_MISSING with None.Matthew Shao2016-03-263-10/+6
|
* Setting CONTENT_MISSING to NoneMatthew Shao2016-03-261-1/+1
|
* netlib: request.path can be NoneMaximilian Hils2016-03-201-1/+4
|
* Merge pull request #1014 from ikoz/masterMaximilian Hils2016-03-171-0/+10
|\ | | | | New option: Add server certs to client chain
| * New option: Add server certs to client chainikoz2016-03-081-0/+10
| | | | | | | | | | | | If enabled, append all server certificates to the certificate chain served to the client, as extras. Can be used to bypass certain certificate pinning impementations.
* | Merge pull request #1030 from xhy940801/socksMaximilian Hils2016-03-161-1/+57
|\ \ | | | | | | Add 'UsernamePasswordAuth' 'UsernamePasswordAuthResponse' to SOCKS
| * | Add 'UsernamePasswordAuth' 'UsernamePasswordAuthResponse' to SOCKSyonder2016-03-151-1/+57
| |/
* | use "peer_address" instead of "sock_address"lilydjwg2016-03-151-3/+3
| |
* | add resolved IP address in "Details" tab依云2016-03-101-0/+3
|/
* fix #956Maximilian Hils2016-02-191-5/+1
|
* Merge remote-tracking branch 'duffer/pretty-host'Maximilian Hils2016-02-181-1/+24
|\
| * Incorporate comments made during reviewShadab Zafar2016-02-181-5/+3
| |
| * Use host header values only when the ports matchShadab Zafar2016-02-181-1/+6
| |
| * Handle port numbers in host headerShadab Zafar2016-02-171-3/+23
| | | | | | | | from: https://github.com/mitmproxy/netlib/pull/121
* | fix test paths, move coverage config into setup.pyMaximilian Hils2016-02-181-1/+1
| |
* | combine projectsMaximilian Hils2016-02-1832-107/+0
|/
* move tservers helperThomas Kriechbaumer2016-02-161-109/+0
|
* fix wheel creation, re-add MANIFEST.inMaximilian Hils2016-02-161-3/+1
|
* Preserve host header when modifying request pathWill Coster2016-02-151-3/+6
| | | | | | | | | | | | | 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.