From a8603cac0d86b29c4904a69121e92bb23934fb27 Mon Sep 17 00:00:00 2001 From: pengqiseven <134899215+pengqiseven@users.noreply.github.com> Date: Mon, 11 Mar 2024 15:19:36 +0800 Subject: [PATCH] fix some typos (#6728) --- examples/addons/tcp-simple.py | 2 +- examples/contrib/httpdump.py | 2 +- test/bench/benchmark.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/addons/tcp-simple.py b/examples/addons/tcp-simple.py index d9bdc3b32..11a464522 100644 --- a/examples/addons/tcp-simple.py +++ b/examples/addons/tcp-simple.py @@ -1,7 +1,7 @@ """ Process individual messages from a TCP connection. -This script replaces full occurences of "foo" with "bar" and prints various details for each message. +This script replaces full occurrences of "foo" with "bar" and prints various details for each message. Please note that TCP is stream-based and *not* message-based. mitmproxy splits stream contents into "messages" as they are received by socket.recv(). This is pretty arbitrary and should not be relied on. However, it is sometimes good enough as a quick hack. diff --git a/examples/contrib/httpdump.py b/examples/contrib/httpdump.py index 532ed1e5d..420667f73 100644 --- a/examples/contrib/httpdump.py +++ b/examples/contrib/httpdump.py @@ -6,7 +6,7 @@ # - dumper_folder: content dump destination folder (default: ./httpdump) # - open_browser: open integrated browser with proxy configured at start (default: true) # -# remember to add your own mitmproxy authorative certs in your browser/os! +# remember to add your own mitmproxy authoritative certs in your browser/os! # certs docs: https://docs.mitmproxy.org/stable/concepts-certificates/ # filter expressions docs: https://docs.mitmproxy.org/stable/concepts-filters/ import logging diff --git a/test/bench/benchmark.py b/test/bench/benchmark.py index b0d690274..f57070484 100644 --- a/test/bench/benchmark.py +++ b/test/bench/benchmark.py @@ -46,7 +46,7 @@ class Benchmark: "benchmark_save_path", str, "/tmp/profile", - "Destination for the .prof and and .bench result files", + "Destination for the .prof and .bench result files", ) ctx.options.update( mode="reverse:http://devd.io:10001",