mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
Bump install-pinned/black from 9101a4d68e870eaaaae21c412d1d879b93c9afcb to 13c8a20eb904ba800c87f0b34ccfd932ac2ff81d (#5899)
* Bump install-pinned/black
Bumps [install-pinned/black](https://github.com/install-pinned/black) from 9101a4d68e870eaaaae21c412d1d879b93c9afcb to 13c8a20eb904ba800c87f0b34ccfd932ac2ff81d.
- [Release notes](https://github.com/install-pinned/black/releases)
- [Commits](9101a4d68e...13c8a20eb9)
---
updated-dependencies:
- dependency-name: install-pinned/black
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* [autofix.ci] apply automated fixes
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
317b7a2be2
commit
dfeddcf4ad
32 changed files with 13 additions and 32 deletions
|
|
@ -60,7 +60,6 @@ class Mapping:
|
|||
|
||||
|
||||
class HttpsDomainFronting:
|
||||
|
||||
# configurations for regular ("foo.example.com") mappings:
|
||||
star_mappings: dict[str, Mapping]
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@ def configure(updated):
|
|||
|
||||
|
||||
def flow_entry(flow: mitmproxy.http.HTTPFlow) -> dict:
|
||||
|
||||
# -1 indicates that these values do not apply to current request
|
||||
ssl_time = -1
|
||||
connect_time = -1
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ from urllib.parse import urljoin
|
|||
|
||||
|
||||
def response(flow):
|
||||
|
||||
if (
|
||||
"Content-Type" in flow.response.headers
|
||||
and flow.response.headers["Content-Type"].find("text/html") != -1
|
||||
|
|
|
|||
|
|
@ -408,7 +408,6 @@ class TestXSSScanner:
|
|||
assert sqli_info is None
|
||||
|
||||
def test_test_query_injection(self, get_request_vuln):
|
||||
|
||||
xss_info = xss.test_query_injection(
|
||||
"<html></html>", "https://example.com/vuln.php?cmd=ls", {}
|
||||
)[0]
|
||||
|
|
|
|||
|
|
@ -141,7 +141,6 @@ class MappingAddon:
|
|||
def done(self) -> None:
|
||||
"""Dumps all new content into the configuration file if self.persistent is set."""
|
||||
if self.persistent:
|
||||
|
||||
# make sure that all items are strings and not soups.
|
||||
def value_dumper(value):
|
||||
store = {}
|
||||
|
|
|
|||
|
|
@ -50,7 +50,6 @@ class URLDict(MutableMapping):
|
|||
return self.store.__len__()
|
||||
|
||||
def get_generator(self, flow: HTTPFlow) -> Generator[Any, None, None]:
|
||||
|
||||
for fltr, value in self.store.items():
|
||||
if flowfilter.match(fltr, flow):
|
||||
yield value
|
||||
|
|
|
|||
|
|
@ -66,7 +66,6 @@ class WatchdogAddon:
|
|||
and flow.error is not None
|
||||
and not isinstance(flow.error, HttpSyntaxException)
|
||||
):
|
||||
|
||||
self.last_trigger = time.time()
|
||||
logger.error(f"Watchdog triggered! Cause: {flow}")
|
||||
self.error_event.set()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue