| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
- Don't crash when passed an empty string. This translated into an actual core
crash, discovered while fuzzing with afl.
- Taking a slice of length one out of bytes returns an integer, so the check
for trailing period in this function never worked on Python3.
- Add unit tests.
|
|
|
|
|
| |
Remove the test that just loads all the example scripts for now - it's a very
low-value test, and we need to think of something better.
|
| |
|
|
|
|
|
|
|
|
| |
- Move more stuff that belongs in netlib.human
- Move some stuff to near the only use
- Zap mitmproxy.utils.timestamp(). I see the rationale, but we used it
interchangeably with time.time() throughout the project. Since time.time()
dominates in the codebase and timestamp() is such low utility, away it goes.
|
| |
|
|
|
|
| |
Extract a number of string and format-related functions to netlib.strutils.
|
| |
|
|
|
|
| |
implementations
|
|
|
|
|
|
| |
also
utils.parse_content_type -> http.headers.parse_content_type
|
|
|
|
| |
Placing this next to its only use.
|
| |
|
| |
|
|
|
|
|
| |
- Remove http2 functions, move to http2.frame
- Remove Serializable, move to netlib.basetypes
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
* sanitize strings with shell control characters
* netlib: add utilities to safe-print bytes
* escaped str: add TODO for multi-byte chars
|
| |
|
| |
|
| |
|
|
|